summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-07-09 15:50:58 +0200
committerxengineering <me@xengineering.eu>2026-07-21 13:35:20 +0200
commit2ef96d61cc74236046080179aa149851fd9394a1 (patch)
treef8d771304e5fce19a8797a3fc95e9fdf74fea5b0
parentd205ec46fbcddf0b5c95f632fa4f1c2de75ff989 (diff)
downloaddotfiles-2ef96d61cc74236046080179aa149851fd9394a1.tar
dotfiles-2ef96d61cc74236046080179aa149851fd9394a1.tar.zst
dotfiles-2ef96d61cc74236046080179aa149851fd9394a1.zip
nvim: Use undercurl for spell checking
This avoids compatibility issues with the font colour picked by the Neovim and foot colour schemes as well as the syntax highlighting.
-rw-r--r--nvim/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 2457407..c5c5c58 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -35,6 +35,11 @@ vim.opt.wildmode = { "longest:full", "full" }
vim.g.mapleader = ' '
+vim.api.nvim_set_hl(0, "SpellBad", { undercurl = true })
+vim.api.nvim_set_hl(0, "SpellCap", { undercurl = true })
+vim.api.nvim_set_hl(0, "SpellRare", { undercurl = true })
+vim.api.nvim_set_hl(0, "SpellLocal", { undercurl = true })
+
-- tab management
vim.keymap.set('n', '<C-t>', ':tabe <LF>')
vim.keymap.set('n', '<Tab>', ':tabn <LF>')