neovim-config
lsp-format.nvim
neovim-config | lsp-format.nvim | |
---|---|---|
5 | 16 | |
23 | 539 | |
- | - | |
8.4 | 4.7 | |
8 days ago | about 1 month ago | |
Lua | Lua | |
- | - |
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.
neovim-config
- rust-analyzer tip: Open docs.rs for the symbol under the cursor
-
how to disable this menu? when saving
Oh, right, thank you a lot! Here is how I did it (if someone interested): https://github.com/Shatur/neovim-config/commit/03a1483ef4160838586cdc158c595eaf6612d65f
-
Breaking changes...breaking changes everywhere
Here is how I use it.
-
Did Neovim Change the Built-in Plugin Manager?
Do don't need to use require for files in plugin folder. They will be loaded automatically. Nothing changed, this is how it worked before. You can take a look at my configuration, I also use the built-in plugin manager: https://github.com/Shatur/neovim-config
-
[Guide] Tips and tricks to reduce startup and Improve your lua config
Sure, here: https://github.com/Shatur/neovim-config I do not use lazy / async loading for simplicity but I'm pretty satisfied with my startup time. My init.lua contains configuration that unrelated to any plugin and loaded first. I use plugin folder to load all my settings for plugin (each file have the corresponding name). My lua/config_utils contains my custom scripts. I also use firenvim plugin to use neovim in text fields in browser. So I do not load some plugins if I in firenvim session (statusline, bufferline, neogit, etc.)
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.
What are some alternatives?
bufferline.nvim - A snazzy bufferline for Neovim
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
formatter.nvim
NvChad - Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.
vim-python-pep8-indent - A nicer Python indentation style for vim.
CodeArt - Use NeoVim as general purpose IDE
vscode-langservers-extracted - vscode-langservers bin collection.
NvChad - An attempt to make neovim cli as functional as an IDE while being very beautiful , blazing fast. [Moved to: https://github.com/NvChad/NvChad]
vscode-eslint - VSCode extension to integrate eslint into VSCode
commented.nvim - Neovim commenting plugin in Lua. Support operator, motions and more than 60 languages! :fire:
nvim-treesitter - Nvim Treesitter configurations and abstraction layer