-
Notifications
You must be signed in to change notification settings - Fork 407
Disable \item indenting on next line #2599
Description
There is a closed issue (#1245) which has a discussion following closing about indentation after \item elements.
Specifically, in the discussion following the closure there is an example:
(i.e., when pressing ENTER in an itemize environment, I get an additional indent like
\item blabla (ENTER pressed) | <--- now here :-(
It was mentioned that if we want to have an option to disable this kind of indentation we should make a new feature request. So here we are :)
For now I am using the following:
let g:vimtex_indent_enabled = 0
let g:tex_indent_items = 0
or in neovim:
vim.g.vimtex_indent_enable = 0
vim.g.tex_indent_items = 0
I imagine the end result would be an option similar to the base tex option. Something like g:vimtex_indent_items which can be set to 0 or 1 (default value).
If the option is cleared (off / 0), the behaviour in the above example would be:
\item blabla (ENTER pressed) | <--- now here :D
I believe implementation would involve adding a conditional to indent/tex.vim but I'll leave those details to the devs. :)