Fork me on GitHub
#vim
<
2022-08-20
>
mars0i20:08:31

I know that I am supposed to know this, but ... It's only recently that I started using Ctrl-] to jump to function definitions. That was using vim-iced, where it just works (mostly--sometimes you have to evaluate a source file first before the definitions will be visible). It knows about Clojure built-in source as well as the definitions in my project. In conjure, however, I have not yet found any documentation on jumping to a function definition.

mars0i20:08:33

I'm not saying it's not documented, but I haven't found it. When I try Ctrl-] , which is an old default, so I'd think it would work, I get "E433 No Tags file" and "E426 tag not found". These are vim/nvim errors, and I didn't do anything to create a tags file. Is that what I'm supposed to do with conjure? What utility is supposed to do that? (Not ctags.)

mars0i20:08:57

Ah! Found it. Never mind. It's not the traditional Ctrl-], but <Leader>gd . I'm set.

Martynas Maciulevičius06:08:53

Instead of that I've set up LSP's vim.lsp.buf.definition to gd and I use it to jump to files in a lot of project types (golang, typescript, whatever). And if it doesn't work (sometimes LSP doesn't get it) then I use <localleader>gd as a fallback when using Conjure. Also LSP's vim.lsp.buf.definition is immediate so it's quite nice. But sometimes it just doesn't find the definition.

👍 2