weilbith / nvim-lsp-smag

Seamless integration of language server locations into NeoVim
MIT License
76 stars 5 forks source link

Respect column position when jumping to tag #3

Closed andymass closed 3 years ago

andymass commented 3 years ago

When jumping to declarations etc, include the column number in the target pattern. (Fixes #1)

Considered alternatives:

  1. Some might like the original line-only behavior, perhaps there should be an option, but not sure.
  2. We could use a function call as the target of the tag instead of a pattern (similar to nvim's lsp.util.jump_to_location) which and only do the utf-16 to utf-8 conversion on the jump, which is potentially cheaper.
weilbith commented 3 years ago

Hey, I just remembered that there was this PR here. I finally returned to my own plugin and did some improvements. This included the usage of a column precise location. Reading up the PR description again it appears to solve the same issue. You might want to try if the latest version satisfy you? Did you had any other issues?