guess-indent.nvim
indent-o-matic
guess-indent.nvim | indent-o-matic | |
---|---|---|
11 | 6 | |
333 | 164 | |
- | - | |
0.0 | 3.1 | |
12 days ago | 11 months ago | |
Lua | Lua | |
MIT License | 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.
guess-indent.nvim
- How to config indentation per project?
- Get indent width from the formatter
-
How do I enable ftplugins in NvChad?
Instead of setting setlocal tabstop=2 shiftwidth=2 softtabstop=2 in each file, I recommend using the following plugin: guess-indent.nvim. It provides automatic indentation style detection for Neovim, which can simplify the process.
-
A Minimal Neovim Configuration for TypeScript Development featuring Lazy.nvim, LSP, Tree-Sitter, Prettier, Guess-Indent
The fantastic nmac427/guess-indent.nvim package is used to automatically detect the indentation scheme when a file is opened.
-
How do you manage to insert both plain tabs and 4-space tabs?
In addition to editorconfig, which other comments have mentioned, there are also plugins that can set your indentation options based on the presence of tabs or spaces in the files you have open. I like guess-indent.nvim.
-
Trouble detecting shiftwidth correctly
I use a combination of guess-indent.nvim and :h listchars. Here's how I use them together in my config.
-
The way indentation and syntax highlighting is handled in nvim is frustrating me
If you want to have a different indentation based on the current file context, take a look at this plugin: https://github.com/NMAC427/guess-indent.nvim
-
Neovim for web development, mainly Frontend
I'd add guess-indent to that list as well, if you're working on a project that doesn't have a set standard on indentation.
-
Different tab sizes for each language
I use this plugin guess-indent.nvim
-
What unique Neovim plugins do you use?
NMAC427/guess-indent.nvim - Automatic indentation style detection for Neovim
indent-o-matic
-
Which vim plugins do not have a lua equivalent yet?
there is indent-o-matic
-
How have you configured indentation?
I use indent-o-matic, along with these defaults:
-
How to adapt indent to the current file ?
I use https://github.com/Darazaki/indent-o-matic currently and set it with a keymap when that fails.
-
Is there an equivalent to :setlocal {option}< using Lua?
I do use a plugin to match the indentation of existing files (indent-o-matic), and that overrides my own indentation preferences; matching the indentation style of an existing codebase is more important than my own preferences or a language style guide. But if I'm starting a new project I stick to tabs for accessibility (unless it would cause whitespace syntax problems).
-
guess-indent — Automatic indentation style detection plugin for neovim
How does it compare to IndentOMatic?
- indent-o-matic: Dumb automatic fast indentation detection for Neovim written in Lua
What are some alternatives?
lsp-inlayhints.nvim
trouble.nvim - 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
vim-sleuth - sleuth.vim: Heuristically set buffer options
indent-blankline.nvim - Indent guides for Neovim
neorg - Modernity meets insane extensibility. The future of organizing your life in Neovim.
marks.nvim - A better user experience for viewing and interacting with Vim marks.
nvim-dap - Debug Adapter Protocol client implementation for Neovim
rnoweb-nvim - A neovim plugin for rnoweb files
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
nap.nvim - Quickly move between next and previous NeoVim buffer, tab, file, quickfix, diagnostic, etc.