vim-sleuth
vim-polyglot
Our great sponsors
vim-sleuth | vim-polyglot | |
---|---|---|
27 | 32 | |
1,784 | 5,513 | |
- | - | |
0.0 | 0.0 | |
about 1 month ago | 6 months ago | |
Vim Script | Vim Script | |
- | - |
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.
vim-sleuth
-
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
vim-polyglot
-
C# lsp configuration with neovim CoC
I'm currently on an old setup (using coc and polyglot) and nvim v0.6.1. I'll be updating to a more modern setup within next year, using the native lsp and building nvim more frequently. But that's not today.
-
how to indent javascript code correctly in a PHP file?
So I did some digging and I found out that vim-polyglot uses a different syntax file than Vim's default for PHP files. When I loaded vim-polyglot's syntax file into my ~/.vim/syntax, I encountered the same issue as you.
-
Coffeescript syntax highlighting?
Try this: https://github.com/sheerun/vim-polyglot You can install plugin or copy-paste files for desired filetype
-
Add extra syntax highlighting in NVIM [around 600+ extra language]
I think you mean vim-polyglot? Great plugin. Pre-treesitter it was indespensible.
-
¿Is there a plugin that sets the errorformat option for a bunch of languages?
Usually this is handled inside the :compiler scripts. vim-polyglot is a collection of ftplugins that includes a bunch of :compiler plugins.
- Need help displaying colors in C files. I have the vim-css-color plugin but that doesn't seem to work in C
- Looking for a neovim/CoC formatter for eruby files
-
Convert neovim .lua to .vim?
Get polyglot installed in your vimfiles/pack//start folder along with whatever 4 Tim Pope plugins you love the most and :CocInstall your LSP(s)
- Minimal config (55 lines) for web development & general purpose programming
-
Syntax highlighting for JavaScript that uses coc-tsserver? The picture shows how my JavaScript import statement looks like currently on top, and below is how it should be highlighted
https://github.com/morhetz/gruvbox and https://github.com/sheerun/vim-polyglot are Vim plugins that work in Neovim, but they don't allow you to use treesitter, so if you don't want to use treesitter use them.
What are some alternatives?
nvim-autopairs - autopairs for neovim written in lua
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
limelight.vim - :flashlight: All the world's indeed a stage and we are merely players
neovim - Vim-fork focused on extensibility and usability
vim-vinegar - vinegar.vim: Combine with netrw to create a delicious salad dressing
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
yapf - A formatter for Python files
vim-nerdtree-syntax-highlight - Extra syntax and highlight for nerdtree files
vim-mucomplete - Chained completion that works the way you want!
vim-python-pep8-indent - A nicer Python indentation style for vim.