LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.4k stars 1.17k forks source link

Change underline word to bold #273

Open benbrastmckie opened 1 year ago

benbrastmckie commented 1 year ago

Hey thanks for this great config! I have most of it working but would like to change the underlining of all words matching the word under the cursor to bold. Here are a couple of observations:

Any help would be greatly appreciated!

gnmearacaun commented 1 year ago

To get rid of the underline, make cursorline = false,

My version of gruvbox doesn't do syntax highlighting, and does have the offending underline. That setting takes it away.

Different themes display cursorline or not at all. That may apply to different filetypes idk. It may be worth experimenting with different themes.

The above setting in tokyonight the line is highlighted and syntax highlighting works as expected. Some themes don't have treesitter support and gruvbox appears not to.

benbrastmckie commented 1 year ago

I ended up using the following in conjunction with RRethy/vim-illuminate:

vim.cmd('hi IlluminatedWordText guibg=#504945 gui=bold')

Works great.