From 745f6c408be95e17689470f51c9844a80850750f Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 27 Aug 2025 11:00:54 +0100 Subject: [PATCH] Disable spell mode highlight groups if harper-ls installed --- lua/plugins/completions.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 07fb287..d8f725e 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -254,5 +254,15 @@ return { toggle_key_flip_floatwin_setting = true, select_signature_key = '', }) + + -- 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 }