From 17f6c136322349c2d1f84ac9f3b5d26917264cce Mon Sep 17 00:00:00 2001 From: cool-mist Date: Sun, 21 Jun 2026 23:39:17 +0530 Subject: [PATCH] Done --- init.lua | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/init.lua b/init.lua index 14aea85..921a0c2 100644 --- a/init.lua +++ b/init.lua @@ -337,8 +337,7 @@ lazy.setup({ "neovim/nvim-lspconfig", event = { "BufReadPre", "BufNewFile" }, config = function() - require('lspconfig').lua_ls.setup({}) - require("lspconfig").powershell_es.setup({}) + V.lsp.enable('lua_ls', 'powershell_es') -- The default borders from nvim-lspconfig, which is what is used to configure the lsp servers -- in this configuration, are not visible. This is a workaround to update the borders key in the @@ -359,24 +358,10 @@ lazy.setup({ } -- RUST -- - local handlers = { - ["textDocument/hover"] = V.lsp.with(V.lsp.handlers.hover, { border = border }), - ["textDocument/signatureHelp"] = V.lsp.with(V.lsp.handlers.signature_help, { border = border }), - } - require("lspconfig").rust_analyzer.setup({ handlers = handlers }) + V.lsp.enable('rust_analyzer') -- C# -- - local omnisharp_extended = require("omnisharp_extended") -- decompilation support - local omnisharp_handlers = { - ["textDocument/hover"] = V.lsp.with(V.lsp.handlers.hover, { border = border }), - ["textDocument/signatureHelp"] = V.lsp.with(V.lsp.handlers.signature_help, { border = border }), - ["textDocument/definition"] = omnisharp_extended.definition_handler, - ["textDocument/references"] = omnisharp_extended.references_handler, - ["textDocument/implementation"] = omnisharp_extended.implementation_handler, - } - - require("lspconfig").omnisharp.setup({ - handlers = omnisharp_handlers, + V.lsp.config('omnisharp', { enable_editorconfig_support = true, enable_ms_build_load_projects_on_demand = false, enable_roslyn_analyzers = true, @@ -385,6 +370,7 @@ lazy.setup({ sdk_include_prereleases = true, analyze_open_documents_only = true, }) + V.lsp.enable('omnisharp') -- Add default LSP keybindings V.api.nvim_create_autocmd('LspAttach', {