editorconfig-vim
guess-indent.nvim
editorconfig-vim | guess-indent.nvim | |
---|---|---|
134 | 11 | |
3,104 | 331 | |
0.1% | - | |
5.1 | 0.0 | |
18 days ago | 7 days ago | |
Vim Script | Lua | |
GNU General Public License v3.0 or later | 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.
editorconfig-vim
-
Most basic code formatting
These are tools that you need to add. But the most elemental code formatting is not here, it is in the widely supported .editorconfig file.
-
Taking the Language Server Protocol one step further
Hello,
Maybe you should check this project:
https://editorconfig.org/
Regards,
- How to config indentation per project?
-
How We Started Managing BSA Delivery Processes on GitHub
editorconfigchecker. A linter that checks files for compliance with editorconfig rules. Another linter that helps maintain consistency in the format of all files.
-
Ask HN: What work/office purchase transformed your life?
Oh, yeah, we had that issue too and solved it pretty successfully with `.editorconfig` (shareable between VScode and IntelliJ, https://editorconfig.org/) combined with `prettier`.
Each IDE is configured to:
- Not reformat code on its own
- Ignore whitespace
- Run `prettier` as a pre-commit hook
Those settings are saved to `.editorconfig` where possible, or to each IDE's repo-specific folder (e.g. `.idea`).
Then in theory each developer can use whatever IDE they want, whatever whitespace settings they want (tabs vs spaces), and the end code committed to the repo is still the same.
-
Rider - Formatting across projects
I am aware of .editorconfig, and one day that may be the correct answer but the specification does not support every element of the styles of both oss and css.
-
Is there any reason to keep the editorconfig plugin installed?
Does this mean I can completely get rid of this plugin?: https://github.com/editorconfig/editorconfig-vim
-
Is there really no support for editorconfig, yet?
[1] https://editorconfig.org
- How do you handle code formatting in a team?
-
Announcing C# Dev Kit for Visual Studio Code
I dunno who downvoted your question, but I believe you can use .editorconfig to set that up for you.
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
What are some alternatives?
nvim-projectconfig - neovim projectconfig
lsp-inlayhints.nvim
pycodestyle - Simple Python style checker in one Python file
vim-sleuth - sleuth.vim: Heuristically set buffer options
project-config.nvim - Per project config for Neovim
indent-blankline.nvim - Indent guides for Neovim
tabset.nvim - A Neovim plugin to easily set tabstop, shiftwidth and expandtab settings for file types.
marks.nvim - A better user experience for viewing and interacting with Vim marks.
prettier - Prettier is an opinionated code formatter.
rnoweb-nvim - A neovim plugin for rnoweb files
emacs-solidity - The official solidity-mode for EMACS
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.