X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/4c400d943e956bb41907e743b7ea16abe7dbf842..fd61b7b4d8f39738dfe019a4f757606e28f3a4d7:/config/nvim/lua/lsp.lua?ds=sidebyside diff --git a/config/nvim/lua/lsp.lua b/config/nvim/lua/lsp.lua index dc90a7b..8f7edbd 100644 --- a/config/nvim/lua/lsp.lua +++ b/config/nvim/lua/lsp.lua @@ -1,19 +1,20 @@ local lspconfig = require('lspconfig') +local coq = require('coq') local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true -lspconfig.tsserver.setup {} -lspconfig.eslint.setup{} -lspconfig.svelte.setup{} -lspconfig.pyright.setup {} -lspconfig.dartls.setup{} -lspconfig.rust_analyzer.setup { +lspconfig.tsserver.setup(coq.lsp_ensure_capabilities({})) +lspconfig.eslint.setup(coq.lsp_ensure_capabilities({})) +lspconfig.svelte.setup(coq.lsp_ensure_capabilities({})) +lspconfig.pyright.setup(coq.lsp_ensure_capabilities({})) +lspconfig.dartls.setup(coq.lsp_ensure_capabilities({})) +lspconfig.rust_analyzer.setup(coq.lsp_ensure_capabilities({ -- Server-specific settings. See `:help lspconfig-setup` settings = { ['rust-analyzer'] = {}, }, -} -lspconfig.lua_ls.setup{} +})) +lspconfig.lua_ls.setup(coq.lsp_ensure_capabilities({})) -- Global mappings. -- See `:help vim.diagnostic.*` for documentation on any of the below functions