dotfiles
formatter.nvim
Our great sponsors
dotfiles | formatter.nvim | |
---|---|---|
7 | 37 | |
4 | 1,261 | |
- | - | |
6.3 | 7.2 | |
5 days ago | 10 days ago | |
Shell | Lua | |
- | 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.
dotfiles
-
What’s your ya combination of lsp, linter and formatter for JS?
I never figured out null-ls for some reason but currently use formatter.nvim to run prettier on save... I do have eslint and typescript diagnostics ...setup looks like this for lsp https://github.com/cmdcolin/dotfiles/blob/master/lua/settings.lua and this for formatting https://github.com/cmdcolin/dotfiles/blob/master/lua/formatting.lua is
- autoformat with lsp-zero
-
Advice on switching from CoC to LSP
personally, i have not had a good experience with integrating eslint, and the prettier experience required some hand-rolling my own config. methods like null-ls never seemed to click with me, so i don't use it. i have auto-format-on-save with prettier using formatter.nvim. my setup https://github.com/cmdcolin/dotfiles
-
What LSP are you using for ReactJS projects and does it have auto imports?
generally for autoimports I have to hit tab and it brings up an auto-complete popup menu next to the cursor, and then it will auto-import the thing I selected from the auto-complete. I don't have any special code that does this in my config afaik so it might be something lsp helps with https://github.com/cmdcolin/dotfiles/blob/master/.vimrc
- I'm searching for nvim configs of react/js developers
-
How to switch from CoC to built in Nvim-LSP?
I was starting to do this here https://github.com/cmdcolin/dotfiles/pull/1/files
formatter.nvim
-
null-ls will be archived
Can anyone explain why someone would use null-ls if you're using the modern lsp setup (say, from kickstart.nvim). I see comments mentioning formatting. I see formatters mentioned several times. Why not just use https://github.com/mhartington/formatter.nvim?
People looking for alternative can check these projects: - nvim-lint - formatter.nvim
-
How to setup formatter for Python ???
I use null-ls (https://github.com/jose-elias-alvarez/null-ls.nvim), I haven't tried it for python, but haven't had trouble with lua, js, ts or rust. You can also look into formatter.nvim (https://github.com/mhartington/formatter.nvim).
-
Scalafmt and neovim
I use formatter.nvim for formatting
-
Does a language server replace ALE, syntastic, and the language plugin?
For formatting, formatter.nvim is a good choice and has similar setup to nvim-lint.
-
lsp.vim.buf.format parameters make tab indent 4 spaces
I finally installed this formatter plugin and configured it to execute de clang-format command like this
-
A Minimal Neovim Configuration for TypeScript Development featuring Lazy.nvim, LSP, Tree-Sitter, Prettier, Guess-Indent
mhartington/formatter.nvim is used for automatic code formatting. Its configuration also shows how to use nvim_create_augroup and nvim_create_autocmd from Lua.
-
Editing the same file in a split causes vim to jump to the top of the file when saving with autoformatter
This might have something to do with extmarks being clobbered when the new text is written. For example, here is a GitHub issue describing the problem: https://github.com/mhartington/formatter.nvim/issues/22 This is for formatter.nvim, but this would likely apply to any process that rewrites the whole buffer.
-
autoformat with lsp-zero
i have always had trouble with lsp formatting and null-ls (may just be me, i'm not super clued in) so i use formatter.nvim https://github.com/mhartington/formatter.nvim/
-
Neovim not formatting code correctly like VSCode does (prettier)
Take a look at formatter.nvim
What are some alternatives?
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
format.nvim - A wrapper around Neovims native LSP formatting. [Moved to: https://github.com/lukas-reineke/lsp-format.nvim]
vim-clang-format - Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, and so on.
vim-autoformat - Provide easy code formatting in Vim by integrating existing code formatters.
efm-langserver - General purpose Language Server
mason.nvim - Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
lsp-format.nvim - A wrapper around Neovims native LSP formatting.
nvim-lint - An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
diagnosticls-configs-nvim - An unofficial collection of linters and formatters configured for diagnostic-languageserver for neovim.
nvim-lspinstall - Provides the missing :LspInstall for nvim-lspconfig