diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-09-26 17:00:56 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-09-26 17:00:56 +0300 |
| commit | a9510e8e3fd7fd25da32f2b3c10837679a3e7b3b (patch) | |
| tree | 37e493a1f4c09789abccb834869efec3cdf95376 /.config/nvim/lua/custom | |
| parent | f931cd7cff57e1d675453411852673b2e2a3d2d1 (diff) | |
remove: marksman filtering, due to no longer using that lsp
Diffstat (limited to '.config/nvim/lua/custom')
| -rw-r--r-- | .config/nvim/lua/custom/config/commands.lua | 13 |
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 - |
