doc/neovim: update treesitter section#489421
Conversation
4357989 to
afdafee
Compare
khaneliman
left a comment
There was a problem hiding this comment.
Some good snippets of info for anyone trying to figure out how to get started, thanks!
6654a8d to
b79a7a1
Compare
b79a7a1 to
558a5f9
Compare
558a5f9 to
27bd070
Compare
3bab855 to
178a99b
Compare
|
Update: Replaced all occurrences of "tree-sitter" with "treesitter" for consistency (upstream spells it "tree-sitter", but the Neovim community spells it "treesitter"). |
| [Treesitter](https://tree-sitter.github.io/) provides syntax parsing for Neovim, enabling features like: | ||
|
|
||
| - Advanced syntax highlighting | ||
| - Code folding | ||
| - Indentation | ||
| - ...and more |
There was a problem hiding this comment.
It doesn't look good in the result file, I'd avoid lists here
| [Treesitter](https://tree-sitter.github.io/) provides syntax parsing for Neovim, enabling features like: | |
| - Advanced syntax highlighting | |
| - Code folding | |
| - Indentation | |
| - ...and more | |
| [Treesitter](https://tree-sitter.github.io/) provides syntax parsing for Neovim, enabling features like: Advanced syntax highlighting, Code folding, Indentation and more |
There was a problem hiding this comment.
Should be able to just indent the lists too
There was a problem hiding this comment.
I've inlined the tree-sitter features list, but I don't think the other lists need to be indented as it would be inconsistent with existing lists on this page.
Various things look a bit off in the result file (for example, the ::: {.important} block has a white background with white text). I wouldn't see those as a blocker for this PR - that's a different issue (if it affects the nixpkgs manual that gets published).
ffba4e4 to
d55bd15
Compare
d55bd15 to
a959a3f
Compare
|
I have a last request before merging. I built this locally and noticed the treesitter bits dont appear in the neovim TOC (table of content). It's true on master https://nixos.org/manual/nixpkgs/unstable/#neovim . |
ac77395 to
670a0f1
Compare
Sure. I've added a second commit. |
670a0f1 to
5ad3a95
Compare
The tree-sitter documentation in
neovim.section.mdis a bit dated (after the switch to frommastertomain, see #470883).This PR aims to improve the documentation by:
nvim-treesittervs. standalone grammars)Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.