summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/custom/config/commands.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/.config/nvim/lua/custom/config/commands.lua b/.config/nvim/lua/custom/config/commands.lua
index 525461b..acb2cbb 100644
--- a/.config/nvim/lua/custom/config/commands.lua
+++ b/.config/nvim/lua/custom/config/commands.lua
@@ -48,16 +48,3 @@ end, {
desc = 'Toggle autoformat on save',
bang = true,
})
-
-local function filter_marksman_diagnostics(_, result, ctx, config)
- local client = vim.lsp.get_client_by_id(ctx.client_id)
- if client ~= nil and client.name == "marksman" then
- return
- end
- -- For other language servers, show diagnostics as normal
- vim.lsp.diagnostic.on_publish_diagnostics(_, result, ctx, config)
-end
-
--- Set diagnostic handler for all language servers
-vim.lsp.handlers["textDocument/publishDiagnostics"] = filter_marksman_diagnostics
-