diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins/colorscheme.lua | 4 | ||||
| -rw-r--r-- | lua/plugins/interface.lua | 14 | ||||
| -rw-r--r-- | lua/plugins/lsp.lua | 59 |
3 files changed, 43 insertions, 34 deletions
diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index caea7ad..8f805bb 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -12,6 +12,10 @@ return { TelescopePromptTitle = { fg = 'base' }, TelescopePromptPrefix = { fg = 'base' }, TelescopePromptCounter = { fg = 'base' }, + TelescopePreviewNormal = { bg = 'overlay' }, + TelescopePreviewBorder = { bg = 'overlay' }, + TelescopeResultsNormal = { bg = 'overlay' }, + TelescopeResultsBorder = { bg = 'overlay' }, }, }) vim.cmd('colorscheme rose-pine') diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua index ddc7b8e..ac78cd0 100644 --- a/lua/plugins/interface.lua +++ b/lua/plugins/interface.lua @@ -10,7 +10,7 @@ return { }, opts = { options = { - diagnostics = "nvim_lsp", + diagnostics = 'nvim_lsp', always_show_bufferline = false, buffer_close_icon = ' ', }, @@ -44,12 +44,12 @@ return { }, opts = { signs = { - add = { text = " ▎" }, - change = { text = " ▎" }, - delete = { text = " " }, - topdelete = { text = " " }, - changedelete = { text = " ▎" }, - untracked = { text = " ▎" }, + add = { text = ' │' }, + change = { text = ' │' }, + delete = { text = ' │' }, + topdelete = { text = ' │' }, + changedelete = { text = ' │' }, + untracked = { text = ' │' }, }, }, }, diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 4a504ec..68da19a 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -1,33 +1,38 @@ return { - { - 'neovim/nvim-lspconfig', - event = { - 'BufReadPost', - 'BufNewFile' - }, - dependencies = { - 'williamboman/mason.nvim', - 'williamboman/mason-lspconfig.nvim', - 'hrsh7th/cmp-nvim-lsp', - }, - config = function() - require('mason').setup() + { + 'neovim/nvim-lspconfig', + event = { + 'BufReadPost', + 'BufNewFile' + }, + dependencies = { + 'williamboman/mason.nvim', + 'williamboman/mason-lspconfig.nvim', + 'hrsh7th/cmp-nvim-lsp', + }, + config = function() + require('mason').setup() - require('mason-lspconfig').setup() + require('mason-lspconfig').setup() - local lsp_capabilities = require('cmp_nvim_lsp').default_capabilities() - local lsp_attach = function(client, bufnr) - end + local lsp_capabilities = require('cmp_nvim_lsp').default_capabilities() + local lsp_attach = function(client, bufnr) + end - local lspconfig = require('lspconfig') - require('mason-lspconfig').setup_handlers({ - function(server_name) - lspconfig[server_name].setup({ - on_attach = lsp_attach, - capabilities = lsp_capabilities, - }) + local lspconfig = require('lspconfig') + require('mason-lspconfig').setup_handlers({ + function(server_name) + lspconfig[server_name].setup({ + on_attach = lsp_attach, + capabilities = lsp_capabilities, + }) + end, + }) + local signs = { Error = " E", Warn = " W", Hint = " H", Info = " I" } + for type, icon in pairs(signs) do + local hl = "DiagnosticSign" .. type + vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) + end end, - }) - end, - }, + }, } |
