xixiaofinland / sf.nvim

A Salesforce development Neovim plugin
27 stars 6 forks source link

"go to definition" in Apex LSP doesn't always work #72

Closed xixiaofinland closed 3 months ago

xixiaofinland commented 4 months ago

The "go to definiton" (class, method, variable) supplied by apex-jorje-lsp.jar doesn't always work. It's typically bind to key gd.

In nvim, we can use ctag to generate ctag file to complement it. Even better, the C-] in nvim will use LSP "go to definition", and fall back to ctag automatically if fails. I currently use it in my own dotfiles, it works seamlessly, covering all "go to definiton" scenarios.

Wonder if it's a good idea to add this ctag feature into sf.nvim? Thoughts? @FedeAbella @waltonzt

https://github.com/xixiaofinland/dotfiles/blob/a9af020733617e19dbfc121af9de465b7e80cd1d/.config/nvim/lua/plugins/fzf-lua.lua#L22

xixiaofinland commented 3 months ago

handled in https://github.com/xixiaofinland/sf.nvim/releases/tag/v1.1.0