-
Notifications
You must be signed in to change notification settings - Fork 45
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
Use virtual text to show titles of linked pages #41
Comments
Did you try setting the LSP diagnostics in https://github.com/mickael-menu/zk/blob/main/docs/config-lsp.md#diagnostics [lsp.diagnostics]
# Report titles of wiki-links as hints.
wiki-title = "hint"
# Warn for dead links between notes.
dead-link = "error" |
I guess what is meant here is showing the note title instead (as an overlay "on top") of the link as virtual text. Might be worth exploring. |
For what it's worth, I'm currently using the See also: https://github.com/mickael-menu/zk-nvim#syntax-highlighting-tips Handling this at the plugin level with virtual text like nerveux does would be even better though because it would also work for |
I missed the config setting, so this definitely helps with my ux need. That said, I think this can be left open, because the virtual text. The conceal setting looks nice, I use wiki links for neuron/emanote compatibility though. I think it should still be possible with Thanks a lot for the quick replies! |
Ah I didn't know about the I'll look into the virtual text feature once I find some time. |
Yes it's supported. |
There's no good way to do this right now. The virtual text can't add or remove any columns. References: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 5 days. |
not stale |
I don't think we can implement this currently in NeoVim. Personally I'm not a fan of the result with https://github.com/pyrho/nerveux.nvim as the titles are cropped when they exceed the length of the link. I assume it's also awkward when it's too short. The feature itself is handled with LSP diagnostics which show the full title. We can reopen this issue if there's a better way to answer this need. |
Especially when generating filenames, links aren't easy to follow, so this would be nice.
https://github.com/pyrho/nerveux.nvim does this for neuron, so maybe we can scavenge some code from there.
The text was updated successfully, but these errors were encountered: