Suppress "Content Modified" errors from powershell lsp

This commit is contained in:
2026-01-15 22:35:36 +09:00
parent 406efe35c3
commit b2617b1022
+12 -1
View File
@@ -2,7 +2,18 @@ return {
{
"ray-x/lsp_signature.nvim",
event = "VeryLazy",
opts = {},
opts = {
ignore_error = function (err, ctx, config)
if ctx and ctx.client_id then
local client = vim.lsp.get_client_by_id(ctx.client_id)
if client and vim.tbl_contains({ "powershell_es" }, client.name) then
if err.message == "Content Modified" then
return true
end
end
end
end
},
config = function (_, opts) require("lsp_signature").setup(opts) end
},
}