From a9510e8e3fd7fd25da32f2b3c10837679a3e7b3b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 26 Sep 2024 17:00:56 +0300 Subject: remove: marksman filtering, due to no longer using that lsp --- .config/nvim/lua/custom/config/commands.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to '.config/nvim/lua') 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 - -- cgit v1.3.1