From b2617b1022bf7511faecfdb15cea153349de9b99 Mon Sep 17 00:00:00 2001 From: SL1900 Date: Thu, 15 Jan 2026 22:35:36 +0900 Subject: [PATCH] Suppress "Content Modified" errors from powershell lsp --- lua/plugins/lsp-signature.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lsp-signature.lua b/lua/plugins/lsp-signature.lua index 061e2a5..757a4b3 100644 --- a/lua/plugins/lsp-signature.lua +++ b/lua/plugins/lsp-signature.lua @@ -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 }, }