Disable spell mode highlight groups if harper-ls installed

This commit is contained in:
Kenneth Benzie 2025-08-27 11:00:54 +01:00
parent 62f3061f48
commit 745f6c408b

View File

@ -254,5 +254,15 @@ return {
toggle_key_flip_floatwin_setting = true,
select_signature_key = '<C-l>',
})
-- When harper-ls is installed
local mason_registry = require('mason-registry')
if mason_registry.is_installed('harper-ls') then
-- Disable builtin spell mode highlighting
vim.cmd.highlight('SpellBad', 'NONE')
vim.cmd.highlight('SpellCap', 'NONE')
vim.cmd.highlight('SpellLocal', 'NONE')
vim.cmd.highlight('SpellRare', 'NONE')
end
end
}