]> git.huck.website - nvim.git/commitdiff
fixed: lsp keybinds and setup
authorHuck Boles <huck.boles@metalplasmatechnology.com>
Tue, 9 Jan 2024 20:00:18 +0000 (12:00 -0800)
committerHuck Boles <huck.boles@metalplasmatechnology.com>
Tue, 9 Jan 2024 20:00:18 +0000 (12:00 -0800)
lua/plugins/cmp.lua
lua/plugins/lsp.lua

index ffb3899058df408f9d618bdff5a63c300fd3fb5f..7497e8b35464f2ab067b7edcc898129d856da013 100644 (file)
@@ -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
     },
 }
index 03ac7a6005ece84f50e5d95b9b266073fecf6f77..e3ed90ce09a16e8938f2662b709ff6f894275c91 100644 (file)
@@ -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,