From c1020414eaf2f3210daf3ca80bb63d5d7cc0d6d8 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 24 Jul 2024 22:54:49 +0300 Subject: feat(neovim): started rust configuration and tweaked some lsp stuff --- .config/nvim/lua/custom/config/lsp.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.config/nvim/lua/custom/config/lsp.lua') 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', { -- cgit v1.3.1