Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change underline word to bold #273

Open
benbrastmckie opened this issue Dec 5, 2022 · 2 comments
Open

Change underline word to bold #273

benbrastmckie opened this issue Dec 5, 2022 · 2 comments

Comments

@benbrastmckie
Copy link

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:

  • I get the underlining in Gruvbox, but when I switch to Tokyonight, then I get background shading of all similar words. This is better than underlining in my view (since underlining looks similar to undercurl which I use for spellchecking), but maybe not quite as good as bold.
  • The underlining only shows up in .tex and .md documents (where I spend most of my time) but I notice that .lua files have the functionality that I want where all similar words under the cursor in normal mode are emboldened. I have looked carefully to try to figure out what could be making for the difference across file types, but no luck so far.

Any help would be greatly appreciated!

@gnmearacaun
Copy link
Collaborator

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
Copy link
Author

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

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

Works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants