nvim-yati
Yet another tree-sitter powered indent plugin for Neovim. (by yioneko)
vim-sleuth
sleuth.vim: Heuristically set buffer options (by tpope)
nvim-yati | vim-sleuth | |
---|---|---|
8 | 27 | |
142 | 1,802 | |
- | - | |
1.9 | 0.0 | |
about 1 year ago | about 2 months ago | |
Lua | Vim Script | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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-yati
Posts with mentions or reviews of nvim-yati.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-06.
-
Different autopair indentation on ( <CR> ) in Python
I'd to use vim-python-pep8-indent for this. Now I use https://github.com/yioneko/nvim-yati
-
Treesitter indent for js
for jsx treesitter, https://github.com/yioneko/nvim-yati has been a better experience for me.
-
How to improving automatic indentation?
You can try https://github.com/yioneko/nvim-yati, it might help.
-
Feedback wanted for incoming changes to the treesitter indent plugin
I'm the author of nvim-yati, a "nonofficial" treesitter indent plugin. Recently I created a new regex-based indent plugin to help improve the default fallback indent computation, but since it is newly developed and not integrated with nvim-yati by default, I cannot learn how it performs and collect feedbacks about it to determine whether to add it as the default option.
-
Treesitter with vim-polyglot for indentation
Not exactly what you are looking for, but https://github.com/yioneko/nvim-yati might help you. This supports JSX/TSX.
-
Question about nvim, LSP and auto-indenting code
I'm using https://github.com/yioneko/nvim-yati, which doesn't provide default configurations specific to python (especially the one mentioned in the original post), but it works reasonably in most of the other cases.
-
How to fix this annoying indent when entering? I uninstalled coc plugin (bcause I initially thought this might be the reason) and remove all set commands like tabsstop etc., but it still persists.
Not sure about if it is appropriate, you could try this plugin written by me to see whether it solves your problem.
-
Strange indentation quirk when writing loops in Neovim
Hi, I'm frustrated with the same problem, so I've made another plugin to handle treesitter based indent: https://github.com/yioneko/nvim-yati. Would be glad if you could give it a try and feedback your feelings or issues! I'm still actively developing it, so every suggestion is highly respected :)
vim-sleuth
Posts with mentions or reviews of vim-sleuth.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-29.
-
How can I set my TAB key to be 4 spaces indent?
In addition to setting tabstop and shiftwidth, you might also like this plugin: https://github.com/tpope/vim-sleuth
-
[HELP] File type specific plugin is ignored
vim-sleuth auto detects tab size so...
-
What did I do to deserve this kind of torture
Just add https://github.com/tpope/vim-sleuth and never worry about it again.
- HELP: save options in sessions
-
Learning Rust, I didn't expect such a backstab
At the end of the day I don't really care which a project goes with, I've always just used vim-sleuth to automatically set my tab key to input whatever the current file's indentation is.
-
Trouble detecting shiftwidth correctly
VsCode has an internal function from auto-detecting indentation, while my config uses vim-sleuth with indent-blankline.nvim.
-
Builtin EditorConfig support
If you work a lot on legacy codebases, https://github.com/tpope/vim-sleuth is probably more what you need than editorconfig, as it will work even when one is not present.
-
New plugin for handling soft/hard line wrapping - wrapping.nvim
The primary advantage of using it is that it has built in heuristics for detecting line wrapping when opening a file (with some Treesitter magic for Markdown to make it more accurate), and also allows for manual swapping between wrapping types. You can think of it as the wrapping equivalent to vim-sleuth.
-
How do I force Neovim to always give me two space indents (or the correct indent) everywhere.
I just found about Tim Pope's sleuth: https://github.com/tpope/vim-sleuth It supports editorconfig but it also seems to have just better heuristics when an editorconfig file isn't present, so I just decided to replace `editorconfig-vim` with it.
-
How to set indentation dynamically based on language?
Another solution is try sleuth.vim, that sets automatically your indentation based on the project, buffer and editorconfig