diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-24 22:54:49 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-24 22:54:49 +0300 |
| commit | c1020414eaf2f3210daf3ca80bb63d5d7cc0d6d8 (patch) | |
| tree | e8a198c790fdf729cb34189dd0ba1ef5fbb84a63 /.config/nvim/lua/custom/config/lsp.lua | |
| parent | 499fabdab372ae13002528595184fb8370d322f4 (diff) | |
feat(neovim): started rust configuration and tweaked some lsp stuff
Diffstat (limited to '.config/nvim/lua/custom/config/lsp.lua')
| -rw-r--r-- | .config/nvim/lua/custom/config/lsp.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.config/nvim/lua/custom/config/lsp.lua b/.config/nvim/lua/custom/config/lsp.lua index c99c4e5..3e43452 100644 --- a/.config/nvim/lua/custom/config/lsp.lua +++ b/.config/nvim/lua/custom/config/lsp.lua @@ -1,8 +1,11 @@ +local lspconfig = require('lspconfig') local capabilities = require('cmp_nvim_lsp').default_capabilities() -local servers = require('custom.config.language-servers') -local lspconfig = require('lspconfig') +local servers = require('custom.config.language-servers') for name, config in pairs(servers) do + if config == false then + goto continue + end if config == true then ---@diagnostic disable-next-line: cast-local-type config = {} @@ -13,6 +16,7 @@ for name, config in pairs(servers) do }, config) lspconfig[name].setup(config) + ::continue:: end vim.api.nvim_create_autocmd('LspAttach', { |
