fix: resolve LSP sync error when setting buffer lines (#2290)

This commit is contained in:
yetone
2025-06-21 21:16:55 +08:00
committed by GitHub
parent 92460fab6a
commit 86743a1d7d
2 changed files with 2 additions and 2 deletions

View File

@@ -986,7 +986,7 @@ function M.get_chat_mentions()
end
local function safe_open_file(filename)
local ok, _ = pcall(vim.cmd, "noautocmd edit " .. filename)
local ok, _ = pcall(function() vim.cmd("noautocmd edit " .. filename) end)
if ok then
-- Manually trigger necessary events
vim.cmd("doautocmd BufRead")