used undercurl for spelling errors, less intrusive

This commit is contained in:
spinach 2023-04-17 16:27:16 -04:00
parent e2de9dc3bc
commit 4af034b826
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,8 @@ vim.cmd([[
syntax enable
colorscheme hybrid
hi Normal ctermbg=NONE
hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE gui=undercurl guifg=NONE guibg=NONE guisp=Red
hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE gui=undercurl guifg=NONE guibg=NONE guisp=Blue
]])
-- defaults to transparent

View File

@ -52,7 +52,11 @@ vim.diagnostic.config({
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
-- custom colors
--vim.cmd('hi DiagnosticUnderlineError cterm=undercurl guisp=Red')
vim.cmd('hi DiagnosticUnderlineError cterm=undercurl')
vim.cmd('hi DiagnosticUnderlineWarn cterm=undercurl')
vim.cmd('hi DiagnosticUnderlineInfo cterm=undercurl')
vim.cmd('hi DiagnosticUnderlineHint cterm=undercurl')
vim.cmd('hi DiagnosticUnderlineOk cterm=undercurl')
-- key mappings
local opts = { buffer = ev.buf,}
-- error viewing