diff options
Diffstat (limited to 'plugin/lsp-config.lua')
-rw-r--r-- | plugin/lsp-config.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/lsp-config.lua b/plugin/lsp-config.lua index b5b5633..0b3e2cb 100644 --- a/plugin/lsp-config.lua +++ b/plugin/lsp-config.lua @@ -11,7 +11,7 @@ local lsp_on_attach = function(client, bufnr) vim.keymap.set('n', 'gR', vim.lsp.buf.rename, opts) vim.keymap.set('n', 'gi', require('telescope.builtin').lsp_implementations, opts) vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) - vim.keymap.set('n', '<C-n>', vim.diagnostic.setqflist, opts) + vim.keymap.set('n', '<C-q>', vim.diagnostic.setqflist, opts) vim.keymap.set('n', '<leader>=', vim.lsp.buf.format, opts) vim.keymap.set('n', '<C-m>', vim.lsp.buf.format, opts) vim.keymap.set('i', '<C-o>', vim.lsp.buf.signature_help, opts) @@ -62,21 +62,26 @@ require('lspconfig')['gopls'].setup { } require('lspconfig')['clangd'].setup { + capabilities = capabilities, on_attach = lsp_on_attach, } require('lspconfig')['pylsp'].setup { + capabilities = capabilities, on_attach = lsp_on_attach, } require('lspconfig')['ocamllsp'].setup { + capabilities = capabilities, on_attach = lsp_on_attach, } require('lspconfig')['zls'].setup { + capabilities = capabilities, on_attach = lsp_on_attach, } require('lspconfig')['texlab'].setup { + capabilities = capabilities, on_attach = lsp_on_attach, } |