diff options
| author | xengineering <me@xengineering.eu> | 2026-07-09 15:50:58 +0200 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2026-07-21 13:35:20 +0200 |
| commit | 2ef96d61cc74236046080179aa149851fd9394a1 (patch) | |
| tree | f8d771304e5fce19a8797a3fc95e9fdf74fea5b0 /nvim | |
| parent | d205ec46fbcddf0b5c95f632fa4f1c2de75ff989 (diff) | |
| download | dotfiles-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.
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 5 |
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>') |
