diff options
| author | David Luevano Alvarado <david@luevano.xyz> | 2026-07-25 02:42:22 -0600 |
|---|---|---|
| committer | David Luevano Alvarado <david@luevano.xyz> | 2026-07-25 02:42:22 -0600 |
| commit | 9523f66e7c3758b6c05bd9ee6a9d6c285730f807 (patch) | |
| tree | 4b8439656a5315da8ce85297c76d50bb4f976426 /lua/plugins | |
| parent | 6c72d83ada8124072ef79c5774a5eac439ca2ec0 (diff) | |
chore: clang/gdscript lsps
don't even remember what i did here months ago
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/lspconfig.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index 23ab2b2..bc3eee5 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -112,8 +112,6 @@ return { { 'folke/neodev.nvim', opts = {} }, }, config = function() - local lspconfig = vim.lsp.config - -- nvim-cmp supports additional completion capabilities, so broadcast that to servers local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) @@ -178,15 +176,16 @@ return { -- generic server setup local function setup_server(server_name) - lspconfig(server_name, { + vim.lsp.config(server_name, { capabilities = capabilities, on_attach = on_attach, settings = servers[server_name], }) + vim.lsp.enable(server_name) end -- setup_server('clangd') - lspconfig('clangd', { + vim.lsp.config('clangd', { capabilities = capabilities, on_attach = function(client, bufnr) -- Really only required if NvChad is used: @@ -204,6 +203,7 @@ return { '--offset-encoding=utf-16', }, }) + vim.lsp.enable('clangd') setup_server('gopls') setup_server('rust_analyzer') @@ -213,12 +213,13 @@ return { setup_server('bashls') -- assumes localhost is mirrored (networkingMode=mirrored in .wslconfig) -- setup_server('gdscript') - lspconfig('gdscript', { + vim.lsp.config('gdscript', { capabilities = capabilities, on_attach = on_attach, settings = servers['gdscript'], cmd = get_gdscript_cmd(), }) + vim.lsp.enable('gdscript') end, }, } |
