From dec313c25895c07bc34334ac597c5f3e1d88145a Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 2 Jun 2026 20:43:56 +0200 Subject: refactor(nvim): remove dead code --- .config/nvim/plugin/50-lsp.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.config/nvim/plugin/50-lsp.lua b/.config/nvim/plugin/50-lsp.lua index 5f22b37..19eaa95 100644 --- a/.config/nvim/plugin/50-lsp.lua +++ b/.config/nvim/plugin/50-lsp.lua @@ -42,17 +42,6 @@ end, { desc = "Toggle LSP inlay hints" }) vim.lsp.config("lua_ls", { on_init = function(client) - -- Use `.luarc.json` or `.luarc.jsonc` if available, then exit - -- See `:help vim.lsp.ClientConfig` for `workspace_folders` - if client.workspace_folders then - local path = client.workspace_folders[1].name - if - path ~= vim.fn.stdpath("config") - and (vim.uv.fs_stat(path .. "/.luarc.json") or vim.uv.fs_stat(path .. "/.luarc.jsonc")) - then - return - end - end -- See Lua language server configuration settings at https://luals.github.io/wiki/settings client.config.settings.Lua = vim.tbl_deep_extend("force", client.config.settings.Lua, { runtime = { -- cgit v1.3.1