+7
-5
lines changedFilter options
+7
-5
lines changed Original file line number Diff line number Diff line change
@@ -1344,12 +1344,14 @@ function M.reset(namespace, bufnr)
1344
1344
end
1345
1345
end
1346
1346
1347
-
vim.api.nvim_command(
1348
-
string.format(
1349
-
"doautocmd <nomodeline> DiagnosticChanged %s",
1350
-
vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr))
1347
+
vim.api.nvim_buf_call(bufnr, function()
1348
+
vim.api.nvim_command(
1349
+
string.format(
1350
+
"doautocmd <nomodeline> DiagnosticChanged %s",
1351
+
vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr))
1352
+
)
1351
1353
)
1352
-
)
1354
+
end)
1353
1355
end
1354
1356
1355
1357
--- Add all diagnostics to the quickfix list.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4