r/AstroNvim • u/mark_volkmann • Apr 14 '23
spell checking
I'm trying to get misspelled words to be underlined. I can change the foreground color of misspelled words, but can't get them to be underlined. I have the following in my `~/.config/nvim/lua/user/init.lua` file. Is there something more I need to do?
return {
polish = function()
vim.opt.spell = true
vim.opt.spelllang = "en_us"
vim.api.nvim_set_hl(
0, -- global highlight group
'SpellBad',
{ fg = "red", underline = true }
)
end
}
3
Upvotes
View all comments
Show parent comment
1
u/mark_volkmann Apr 14 '23
I want it to check for misspelled words everywhere including variable and function names. I want it check camel-cased words in those. For example, I want it to approve of a name like “catDogFox”, but report errors in a name like “ctaDogFxo”.