lsp-format.nvim
vscode-eslint
lsp-format.nvim | vscode-eslint | |
---|---|---|
16 | 3 | |
539 | 1,679 | |
- | 0.9% | |
4.7 | 7.7 | |
about 1 month ago | 4 days ago | |
Lua | TypeScript | |
- | 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.
lsp-format.nvim
-
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.
vscode-eslint
-
Breaking changes inbound (next few weeks) for lspconfig and neovim's language server client lsp
vscode-eslint does implement an LSP bridge which is lspconfig provides.
-
TypeScript: ESLint code actions and (experimental) diagnostics / formatting
I've recently added support for ESLint code actions to my plugin nvim-lsp-ts-utils, a feature some users expressed interest in the last time I posted about the plugin here. The implementation supports most of the features from vscode-eslint, including applying fixes and disabling rules for the current line / file:
-
Format Glimmer templates with Prettier
Please refer to official documentation for ESLint extension for VSCode for details.
What are some alternatives?
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
nvim-lsp-ts-utils - Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.
formatter.nvim
ember-template-lint - Linter for Ember or Handlebars templates
vim-python-pep8-indent - A nicer Python indentation style for vim.
efm-langserver - General purpose Language Server
vscode-langservers-extracted - vscode-langservers bin collection.
diagnostic-languageserver - diagnostic language server integrate with linters
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
prettier - Prettier is an opinionated code formatter.
nvim-treesitter-context - Show code context
nvim-lspconfig - Quickstart configs for Nvim LSP