Indents Queries #22
jpt13653903
started this conversation in
General
Replies: 1 comment 1 reply
-
Yeah I have also found the standard autoindent and smartindent to be sufficient. However, wherever it isn't I don't mind working on an indents.scm. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@superzanti
I see that the nvim-treesitter implementation of indents is still experimental, with little to no documentation. I'd like to suggest we park that feature until we have better information: with my minimal experimentation I've found the stock-standard
autoindent
andsmartindent
to be sufficient in most cases. Thoughts?So far I have found the following resources (for future reference):
:help nvim-treesitter-indentation-mod
in Neovim to get some more informationvim.opt.indentexpr = 'v:lua.vim.treesitter.indent()'
in yourinit.lua
, otherwise it doesn't do anything.autoindent
,smartindent
andcindent
) so that it doesn't interfere with tree-sitter.Beta Was this translation helpful? Give feedback.
All reactions