diff options
Diffstat (limited to '')
-rw-r--r-- | lua/conf/plugins/lspconfig.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/conf/plugins/lspconfig.lua b/lua/conf/plugins/lspconfig.lua new file mode 100644 index 0000000..3dce638 --- /dev/null +++ b/lua/conf/plugins/lspconfig.lua @@ -0,0 +1,18 @@ +return { 'neovim/nvim-lspconfig', + disable = vim.version().minor < 8, + function() + vim.diagnostic.config { + virtual_text = false, + signs = true, + update_in_insert = false, + underline = true, + severity_sort = true + } + + vim.lsp.handlers['textDocument/hover'] = vim.lsp.with( + vim.lsp.handlers.hover, { border = 'solid' }) + + vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with( + vim.lsp.handlers.signature_help, { border = 'solid' }) + end +} |