summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-09-04 18:18:52 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-09-04 18:18:52 +0200
commitaf2423556465a7ad7729bde3fcf7fb6d0520f87d (patch)
tree5a6543e472241f313c924eb2018c4452b3d33685
parent06e8a09dd8ee52cc2860213c45158df916d042ec (diff)
nvim: only underline in spellcheck
-rw-r--r--nvim/nvim/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/nvim/nvim/init.lua b/nvim/nvim/init.lua
index 0365d1e..d80577e 100644
--- a/nvim/nvim/init.lua
+++ b/nvim/nvim/init.lua
@@ -42,6 +42,10 @@ vim.cmd.highlight("CursorLine", "ctermbg=DarkGrey", "guibg=#262626")
vim.cmd.highlight("ColorColumn", "ctermbg=DarkGrey", "guibg=#262626")
vim.cmd.highlight("ExtraWhitespace", "ctermbg=red", "guibg=red")
+-- Spell
+-- Only mark the underline, by default it also writes the text in red
+vim.cmd.highlight("SpellBad", "cterm=underline", "gui=undercurl")
+
-- HighLight search
vim.opt.hlsearch = true