lsp-format.nvim
A wrapper around Neovims native LSP formatting. (by lukas-reineke)
nvim-yati
Yet another tree-sitter powered indent plugin for Neovim. (by yioneko)
lsp-format.nvim | nvim-yati | |
---|---|---|
16 | 8 | |
539 | 142 | |
- | - | |
4.7 | 1.9 | |
about 1 month ago | about 1 year ago | |
Lua | Lua | |
- | 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.
lsp-format.nvim
Posts with mentions or reviews of lsp-format.nvim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-18.
-
My Setup for Responsive (Immutable) Formatting
suffice it to say, I haven't needed to mess with it in a very long time, and it works very nicely and smoothly. I based it on https://github.com/lukas-reineke/lsp-format.nvim back before he extracted that plugin from his dotfiles, but over time I added a lot.
- Delay when formatting on save
-
Cursor moves on format
Ok guys I solved it by using this wonderful plugin https://github.com/lukas-reineke/lsp-format.nvim . Apparently it had something to do with setting up my autosave from null-ls but can't be sure. Anyways, solved.
-
Format on Save
My first reaction is to set a buffer-exclusive autocmd on lsp attach to call vim.lsp.buf.format(), that should work if you don't want depdenencies. Another way to go is https://github.com/lukas-reineke/lsp-format.nvim, it's a thin wrapper around nvim's format and can provide format on save.
-
How to turn off on-save formatting in null-ls and let Lsp prettier and Eslint format instead? [LazyVim]
Use lsp-format.nvim and put null-ls on the blacklist.
-
Scalafmt and neovim
If you already use metals as a language server, it looks like scalafmt support is already built in. If you're using metals in Neovim but not getting formatting, check your lsp configuration. Alternatively, use lsp-format.nvim to ensure formatting happens. That goes for using it with null-ls, too.
-
Am I interweaving lspconfig and lsp-zero correctly?
Thanks! One additional question, I'm using lsp-format. And to use it, I just
-
Slow formatters end up overwriting changes since last save, any ideas how to change this behavior?
My plugin lukas-reineke/lsp-format.nvim does that. It wraps around the built-in LSP formatting with a couple opinionated improvements.
-
Autoformatting on save with vim.lsp.buf.format() and BufWritePre
You can take a look at my plugin LSP-format.nvim for a bit more robust solution to async format on save. But it will also write the file twice. There is currently no other way to do this.
-
null-ls & terraformls format on save prompt
I recommend instead using lsp-format.nvim to manage multiple LSP clients trying to format.
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 :)
What are some alternatives?
When comparing lsp-format.nvim and nvim-yati you can also consider the following projects:
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
ayu-vim - Modern theme for modern VIMs
formatter.nvim
vim-python-pep8-indent - A nicer Python indentation style for vim.
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vscode-langservers-extracted - vscode-langservers bin collection.
twilight.nvim - 🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
vscode-eslint - VSCode extension to integrate eslint into VSCode
vim-tmindent - Port TextMate style indentation to vim.
nvim-treesitter-context - Show code context
lsp-format.nvim vs null-ls.nvim
nvim-yati vs ayu-vim
lsp-format.nvim vs formatter.nvim
nvim-yati vs vim-python-pep8-indent
lsp-format.nvim vs vim-python-pep8-indent
nvim-yati vs nvim-treesitter
lsp-format.nvim vs vscode-langservers-extracted
nvim-yati vs twilight.nvim
lsp-format.nvim vs vscode-eslint
nvim-yati vs vim-tmindent
lsp-format.nvim vs nvim-treesitter
lsp-format.nvim vs nvim-treesitter-context