From 2ef96d61cc74236046080179aa149851fd9394a1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 9 Jul 2026 15:50:58 +0200 Subject: 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. --- nvim/init.lua | 5 +++++ 1 file changed, 5 insertions(+) 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', '', ':tabe ') vim.keymap.set('n', '', ':tabn ') -- cgit v1.3.1