From a78761e710953310726d4b0a2b1288c72239397b Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Tue, 9 Jan 2024 12:00:18 -0800 Subject: [PATCH] fixed: lsp keybinds and setup --- lua/plugins/cmp.lua | 7 +++++-- lua/plugins/lsp.lua | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index ffb3899..7497e8b 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -59,9 +59,12 @@ return { sources = cmp.config.sources({ { name = 'path' } }, { { name = 'cmdline' } }) }) + local lsp = require('lspconfig') local capabilities = require('cmp_nvim_lsp').default_capabilities() - require('lspconfig')['rust_analyzer'].setup { capabilities = capabilities } - require('lspconfig')['texlab'].setup { capabilities = capabilities } + + lsp.texlab.setup { capabilities = capabilities } + lsp.lua_ls.setup { capabilities = capabilities } + lsp.julials.setup { capabilities = capabilities } end }, } diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 03ac7a6..e3ed90c 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -68,6 +68,10 @@ return { -- servers to setup local lsp = require("lspconfig") + lsp.julials.setup({ on_attach = keybinds }) + lsp.lua_ls.setup({ on_attach = keybinds }) + lsp.texlab.setup({ on_attach = keybinds }) + -- diagnostic settings vim.lsp.diagnostics = { signs = true, -- 2.45.2