Disable spell mode highlight groups if harper-ls installed
This commit is contained in:
parent
62f3061f48
commit
745f6c408b
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user