Open srghma opened 5 years ago
I've made some code to parse the annotation information that Agda provides, but it (reasonably) gives positions in terms of Unicode character offsets. This is awkward to work with with vim's byte offsets.
I did some shenanigans, and it should work now with <LocalLeader>d
(e.g. \d
) going to the definition. I haven't tested it going across files. If it doesn't seem to be working within a file, try reloading (i.e. <LocalLeader>l
). Tell me if you run into any other issues with it.
tnx, seen your commit https://github.com/derekelkins/agda-vim/commit/06efbd079a7dfc0a8b079aed4509e17113cc0977#diff-41d7a2e73a1059616a22878732ea864aR426
will check
it's not working for me, annotations is empty
with
with open('/tmp/agdalog','w') as f:
text = json.dumps(annotations)
f.write(text)
https://asciinema.org/a/SsmzxzfYrPratGt0KruhWklYR
To reproduce
nix-shell
(I'm using nixos)
It s middle mouse button click or m-. in emacs mode
https://agda.readthedocs.io/en/v2.5.2/tools/emacs-mode.html