News for hackers. Stuff that matters.
Re:Stack Graphs by gorgoiler on Thursday December 09, 2021 @02:47PM (#29502011)
How do I plumb this precise code jumping into vim?

My tags files just don’t seem to cut it any more.

Re:Stack Graphs by dcreager on Thursday December 09, 2021 @03:13PM (#29502331)
The most straightforward option would probably be to write an LSP wrapper around the stack graphs code. One of the people on my team wrote a very “contrib directory” version of that for internal testing, which lets us test our stack graph rules for a new language in something like VS Code before deploying to production. If someone were to write a more polished version of that, that would be a great way to get code nav into any LSP-compatible editor for any language that supports stack graphs.
Re:Stack Graphs by Annili on Friday December 10, 2021 @03:49PM (#29515277)
> One of the people on my team wrote a very “contrib directory” version of that for internal testing

If that is open-source, could you please share a link to it?

I'm curious what advantages this "stack-graphs LSP wrapper" has over existing language-specific LSP servers for an editor/IDE, maybe lower memory usage or better performance?

Re:Stack Graphs by bbkane on Thursday December 09, 2021 @03:18PM (#29502392)
NeoVim has Tree-sitter and Language Server integration. I couldn't make it work for me, bit lots of people really love it!
Re:Stack Graphs by botdan on Thursday December 09, 2021 @03:45PM (#29502684)
If you haven't tried again recently the neovim team has done a ton of work updating the documentation on nvim-lspconfig [1]. There's also projects like kickstart.nvim [2] which aim to provide a very simple starting point for new users. It's "batteries-included" neovim which notably includes LSP, TreeSitter, completion engines, and some basic git functionality.

[1] https://github.com/neovim/nvim-lspconfig [2] https://github.com/nvim-lua/kickstart.nvim

Re:Stack Graphs by luxurytent on Thursday December 09, 2021 @08:11PM (#29505296)
Jump over to neovim with built-in lsp + treesitter .. and enjoy :)

(happy to help clarify setup/configuration)