lsp-format.nvim
A wrapper around Neovims native LSP formatting. (by lukas-reineke)
packspec
ALPHA package dependencies spec (by neovim)
lsp-format.nvim | packspec | |
---|---|---|
16 | 7 | |
539 | 204 | |
- | 1.5% | |
4.7 | 4.8 | |
30 days ago | 2 months ago | |
Lua | Lua | |
- | Apache License 2.0 |
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.
packspec
Posts with mentions or reviews of packspec.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-10.
- This Week In Neovim #31 – Mon Feb 13 2023
-
Introducing Luarocks-Tag-Release - Publish your Neovim plugins to LuaRocks
It looks like there's a WIP package specification that might also support source = luarocks://.
-
Standardizing Neovim package management API - could or should this be a thing? Let’s talk about it!
I was hoping you would clarify exactly what you're proposing so I could forward the appropriate link, otherwise I'm just guess based off a vague (but long) post. Based on other replies in this reddit post, I'm not the only one confused by your ambiguous and likely incorrect terminology. It sounds like you're looking for a specification, which exists https://github.com/nvim-lua/nvim-package-specification, it just isn't well adopted. There's also countless Github issues and discussions about this on IRC which you could find by a simple Google search. It really just depends on what you're alluding to which is why I linked what an API was so you could be more specific. If you're looking for the plugin managers API (notice the qualifier) to be consistent, then that's not a good idea since the API of the plugin manager is what differentiates them, it's like saying all programming languages should be the same, the only thing different should be the backend (e.g. gcc vs llvm). The consistency should be at a different layer (thus the plugin spec).
-
Breaking changes inbound (next few weeks) for lspconfig and neovim's language server client lsp
packspec, a package specification for neovim to address the dependency issue
-
Opinion on better plugin management?
There is an issue for it: https://github.com/nvim-lua/nvim-package-specification/issues/23
What are some alternatives?
When comparing lsp-format.nvim and packspec 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.
lazy.nvim - 💤 A modern plugin manager for Neovim
formatter.nvim
nvim-conf - ☄ Maddison's Neovim configuration!
vim-python-pep8-indent - A nicer Python indentation style for vim.
luarocks - LuaRocks is the package manager for the Lua programming language.
vscode-langservers-extracted - vscode-langservers bin collection.
vscode-eslint - VSCode extension to integrate eslint into VSCode
neovim - Vim-fork focused on extensibility and usability
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
fabn
lsp-format.nvim vs null-ls.nvim
packspec vs lazy.nvim
lsp-format.nvim vs formatter.nvim
packspec vs nvim-conf
lsp-format.nvim vs vim-python-pep8-indent
packspec vs luarocks
lsp-format.nvim vs vscode-langservers-extracted
packspec vs vscode-eslint
lsp-format.nvim vs vscode-eslint
packspec vs neovim
lsp-format.nvim vs nvim-treesitter
packspec vs fabn