From d9b499f942adfb595b6175e344a802fe1491bf7a Mon Sep 17 00:00:00 2001 From: Rendo Date: Tue, 20 Oct 2026 22:35:27 +0500 Subject: [PATCH] Reorder lsp config --- lua/config/lsp.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 7a8d2bb..9b560af 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -12,31 +12,17 @@ vim.lsp.config('lua_ls', { client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, { runtime = { - -- Tell the language server which version of Lua you're using (most - -- likely LuaJIT in the case of Neovim) version = 'LuaJIT', - -- Tell the language server how to find Lua modules same way as Neovim - -- (see `:h lua-module-load`) path = { 'lua/?.lua', 'lua/?/init.lua', }, }, - -- Make the server aware of Neovim runtime files workspace = { checkThirdParty = false, library = { vim.env.VIMRUNTIME, - -- Depending on the usage, you might want to add additional paths - -- here. - -- '${3rd}/luv/library', - -- '${3rd}/busted/library', }, - -- Or pull in all of 'runtimepath'. - -- NOTE: this is a lot slower and will cause issues when working on - -- your own configuration. - -- See https://github.com/neovim/nvim-lspconfig/issues/3189 - -- library = vim.api.nvim_get_runtime_file('', true), }, }) end, @@ -55,8 +41,6 @@ vim.lsp.config('rust_analyzer', { } }) -vim.lsp.enable({'clangd','lua_ls','rust_analyzer','mesonlsp','cmake','omnisharp','pyright','gopls','ols'}) ---Enable (broadcasting) snippet capability for completion local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true @@ -64,3 +48,4 @@ vim.lsp.config('neocmake', { capabilities = capabilities, }) +vim.lsp.enable({'clangd','lua_ls','rust_analyzer','mesonlsp','cmake','omnisharp','pyright','gopls','ols'})