used undercurl for spelling errors, less intrusive
This commit is contained in:
parent
e2de9dc3bc
commit
4af034b826
@ -27,6 +27,8 @@ vim.cmd([[
|
|||||||
syntax enable
|
syntax enable
|
||||||
colorscheme hybrid
|
colorscheme hybrid
|
||||||
hi Normal ctermbg=NONE
|
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
|
-- defaults to transparent
|
||||||
|
@ -52,7 +52,11 @@ vim.diagnostic.config({
|
|||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
callback = function(ev)
|
callback = function(ev)
|
||||||
-- custom colors
|
-- 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
|
-- key mappings
|
||||||
local opts = { buffer = ev.buf,}
|
local opts = { buffer = ev.buf,}
|
||||||
-- error viewing
|
-- error viewing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user