disable spell checking in quickfix/location list

This change ensures that spell checking is turned off in quickfix and
location list windows to improve usability and avoid distractions.
This commit is contained in:
Ray Elliott 2026-01-22 13:54:01 +00:00
parent eb34b793b5
commit c090670463
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ vim.api.nvim_create_autocmd("FileType", {
group = aug,
pattern = "qf", -- Applies to both quickfix and location list
callback = function()
-- Disable spell checking in quickfix/location list windows
vim.opt_local.spell = false
-- Use matchadd() for higher priority highlighting
-- This will override the default qf syntax
vim.fn.matchadd("qfError", "\\<error\\>", 10)