nvim-config
tree-sitter-comment
nvim-config | tree-sitter-comment | |
---|---|---|
9 | 6 | |
22 | 122 | |
- | - | |
8.6 | 3.2 | |
22 days ago | 13 days ago | |
Lua | C | |
GNU General Public License v3.0 only | 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.
nvim-config
-
Need help setting working directory of my debugger for python in neovim
my config works fine without setting cwd. I have a helper module that gets the Python path from the currently active virtual environment.
-
how to avoid overlapping of gitsigns and lsp warning symbols in SignColumn?
Check my config for inspiration and the example screenshot above from my config.
-
Documentation Comment highlighting with TreeSitter
Not sure for Java (that’s Java right?), but for Python I inject rst in docstring comments. See here for my config.
-
What else can I do to speedup startup time?
How is anybody supposed to be able to help, given the information you provide? My setup with perhaps 60 plug-ins load in ~40ms (according to Lazy profile) on my M2 mac or ryzen 5600 workstation. You can take a look here.
-
How to fetch python installed path from lua?
My python helper, ftplugin and DAP executable
-
VenvSelect 0.2
Cool! I’ve written something similar in my config. But it only supports selecting conda environments. Typically I specify the venv and venvPath in pyrightconfig.json, so I use the code to show the current env in the status line and to supply the executable to dap and neotest.
-
Start conda envs after opening a file + conda envs telefoscope & Send to terminal (both for python)?
helpers/python.lua
-
After using Emacs (with evil) for a long time I switched to Neovim.
You should not add the ft = "latex" for VimTeX (https://github.com/isaksamsten/nvim-config/blob/main/lua/plugins/latex.lua)! VimTeX is already properly lazy by design (through use of ftplugin/ and autoload/). This is explained in a note just below the install instructions in the readme. :)
tree-sitter-comment
-
Documentation Comment highlighting with TreeSitter
As far as I know there is currently no treesitter parser for Doxygen style comments. There is a language agnostic comment parser that is supported by nvim-treesitter that will highlight things like TODO: and NOTE: in comments. Until this recent commit nvim-treesitter provided a query for this parser that highlighted @ text in comments. It was meant to highlight a reference to a user but it doubled as a doxygen tag highlight for me for a while. I just noticed that this query has been removed and I'm not sure why but you can add it as a custom query in your Neovim config. I have yet to try this so you'll have to refer to the Neovim treesitter docs for where to add the query.
-
emacs-29: Using treesitter to highlight keywords in comments
I'm not sure how to use this in Emacs, but there's also a tree-sitter grammar specifically for comment blocks, including TODOs: https://github.com/stsewd/tree-sitter-comment
-
Will Treesitter ever be stable on big files?
you mean this one? https://github.com/stsewd/tree-sitter-comment
-
paint.nvim: Simple Neovim plugin to easily add additional highlights to your buffers
The reason I implemented this is because of the slow performance of tree-sitter-comment in large files. Treesitter will inject the comment language for every line comment, which is far from ideal. I've disabled the comment parser, but still wanted to see @something highlighted in Lua comments.
-
Treesitter query not working
The right most window shows the code I want to query. This is a .cpp file, so the main-language is C++. For highlighting the two comments, I'm using tree-sitter-comment. This plugin injects the comment-language. I want to query all tag nodes from this injected language, but this query does not work.
-
Is it possible to get highlight on these comments docs with treesitter?
You can install this parser for treesitter which highlights comments :)
What are some alternatives?
statuscol.nvim - Status column plugin that provides a configurable 'statuscolumn' and click handlers.
tree-sitter-go-template - Golang template grammar for tree-sitter
telescope-conda.nvim
tsdoc - A doc comment standard for TypeScript
debugpy - An implementation of the Debug Adapter Protocol for Python
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
py_lsp.nvim - Lsp Plugin for working with Python virtual environments
giscus - A comment system powered by GitHub Discussions. :octocat: :speech_balloon: :gem:
nvim-dap-python - An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
comments - Native comments for your Laravel application.
NeoTerm.lua - You can attach a terminal-buffer for each buffer.
DoxyGen-Syntax - DoxyGen Highlighting on top of c/c++/java