stack-graphs
nvim-ts-context-commentstring
Our great sponsors
stack-graphs | nvim-ts-context-commentstring | |
---|---|---|
6 | 26 | |
686 | 1,045 | |
7.4% | - | |
9.7 | 6.7 | |
12 days ago | 5 days ago | |
Rust | Lua | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
stack-graphs
-
Code Search Is Hard
https://github.com/pyjarrett/septum
The hardest part about getting code search right imo is grabbing the right amount of surrounding context, which septum is aimed at solving on a per-file basis.
Another one I'm surprised hasn't been mentioned is stack-graphs (https://github.com/github/stack-graphs), which tries to incrementally resolve symbolic relationships across the whole codebase. It powers github's cross-file precise indexing and conceptually makes a lot of sense, though I've struggled to get the open source version to work
-
Even the Pylint codebase uses Ruff
[2]: https://github.com/github/stack-graphs
-
The technology behind GitHub’s new code search
> It doesn't have the faintest idea where the name is defined, or if there's even a difference between a function name, a parameter name, or a word in a comment.
I don't think what you are saying is actually true for stack-graphs[0][1].
[0]: https://github.com/github/stack-graphs
[1]: https://github.blog/2021-12-09-introducing-stack-graphs/
-
Should I be worried or not worried about Tree-sitter now that the Atom editor has been killed?
I think GitHub still has some use for tree-sitter. In this post it's mentioned that their new code navigation system is based on tree-sitter. In a more recent post they welcome contributers to add special code navigation queries to existing languages. You can find their public repository here if you want to follow along with any developments. Since their code navigation system relies heavily on tree-sitter I don't think it's going anywhere soon (fingers crossed).
-
What happened with GitHub's semantic project?
Which they implement in Rust. https://github.com/github/stack-graphs
-
Stack Graphs
As mentioned elsewhere on this thread, stack graphs and Semantic were built by the same team (which I manage). Semantic is not abandoned, we've just been focusing on a different layer of our tech stack for the past year or so. https://news.ycombinator.com/item?id=29501389
That PR on the Semantic repo was our first attempt at implementing these ideas. We decided to reimplement it in a separate library (also open source, https://github.com/github/stack-graphs), which only builds on tree-sitter directly so that there's an easier story for us and language communities to add support for new languages. It's a fair point that we could have closed the Semantic PR to indicate that more clearly.
nvim-ts-context-commentstring
-
Trying to set up a dev environment for Vue.js in Astrovim
I work with Vue every day, but I don't use AstroNvim. The Volar language server with Take Over Mode works great for me. I don't know what exactly is broken for you when commenting, but my plugin nvim-ts-context-commentstring works for setting the correct commentstring in the Vue single file component sections with Treesitter.
-
Comment your code more efficiently in Neovim
Fair enough, although this helps a lot with this issue.
-
What is the best commenter for tsx, jsx and css files with lua config
I haven't tried mini, but judging by the README he would also have to use a plugin the likes of nvim-ts-commentstrung in a p re / post hook to get the adequate comment string in files with multiple languages.
- How to surround a paragraph with multiple charaters/symbols?
-
Commenting both erb and handlebars files
I use https://github.com/JoosepAlviste/nvim-ts-context-commentstring with vim-commentary
-
JavaScript and CSS in HTML files
I think you could use Comment.nvim combine with nvim-ts-context-commentstring like explained in this video
-
Is it possible to configure nvim_comment to change the way it comments if I am inside a jsx/tsx block or outside a jsx/tsx block?
you should be able to integrate it with nvim-ts-context-commentstring as specified in the nvim-comment README
-
Svelte commenting
Are you using nvim-ts-context-commentstring?
-
Plugin suggestion
You can try using comment + context-comment, I've found it better for treesitter supported code commenting personally.
-
Context commenting not woking on ReactJs
I'm using Context Commentstring & Comment.nvim together.
What are some alternatives?
semantic-source - Parsing, analyzing, and comparing source code across many languages
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
kickstart.nvim - A launch point for your personal nvim configuration
Comment.nvim - :brain: :muscle: // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more
nvim-lspconfig - Quickstart configs for Nvim LSP
tcomment_vim - An extensible & universal comment vim-plugin that also handles embedded filetypes
scip-zig - SCIP indexer for Zig!
vim-context-commentstring - Vim plugin that sets the value of ‘commentstring’ to a different value depending on the region of the file you are in.
pagefind - Static low-bandwidth search at scale
neovim - Vim-fork focused on extensibility and usability
lsif-clang - Language Server Indexing Format (LSIF) generator for C, C++ and Objective C
kommentary - Neovim commenting plugin, written in lua.