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

Link obsidian highlight groups to vim's default ones #764

Open
GordianDziwis opened this issue Oct 28, 2024 · 0 comments
Open

Link obsidian highlight groups to vim's default ones #764

GordianDziwis opened this issue Oct 28, 2024 · 0 comments

Comments

@GordianDziwis
Copy link

GordianDziwis commented Oct 28, 2024

🚀 The feature, motivation and pitch

Hard-coding the highlights does clash with most colorschmemes, overriding them is inconvenient for the user.

A solution is to link to nvims built-in highlights:

hi! link ObsidianTodo DiagnosticError
hi! link ObsidianDone DiagnosticOk
hi! link ObsidianRightArrow SpecialChar
hi! link ObsidianTilde DiagnosticFloatingHint
hi! link ObsidianImportant DiagnosticError
hi! link ObsidianBullet SpecialChar
hi! link ObsidianRefText Tag
hi! link ObsidianExtLinkIcon Tag
hi! link ObsidianTag Tag
hi! link ObsidianBlockID Tag
hi! link ObsidianHighlightText Search

Additional context

This should also solve #755.

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

No branches or pull requests

1 participant