vim-python-pep8-indent
A nicer Python indentation style for vim. (by Vimjas)
lsp-format.nvim
A wrapper around Neovims native LSP formatting. (by lukas-reineke)
vim-python-pep8-indent | lsp-format.nvim | |
---|---|---|
12 | 16 | |
779 | 538 | |
0.3% | - | |
0.0 | 4.7 | |
about 1 year ago | 29 days ago | |
Ruby | Lua | |
Creative Commons Zero v1.0 Universal | - |
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.
vim-python-pep8-indent
Posts with mentions or reviews of vim-python-pep8-indent.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-02.
-
If you have treesitter, make sure to disable smartindent to have a sane and normal indentation, especially in Python
Interesting. I’ve always used default auto-indenting and explicitly turn it off in Treesitter as I’ve found it messes it up. The ultimately improvement for me has been this plugin.
-
How to use tabs instead of spaces in python for neovim 0.9 with editorconfig
Use Vimjas/vim-python-pep8-indent and forget about all your Python headaches.
-
Weird indentation on python
I've always been very happy with vim-python-pep8-indent. But you need to enable additional_vim_regex_highlighting in treesitter which currently does not play well with spell being on. Alternatively you can rely on the indent feature of treesitter but it's currently experimental and has some issues with python: * https://github.com/nvim-treesitter/nvim-treesitter/issues/4651 * https://github.com/nvim-treesitter/nvim-treesitter/issues/4650
- [Q] indentation question
-
Why autoindents never work properly with Python files?
Try this plugin for python indentation
-
Indenting for python using mason.nvim
A good old indentation plugin vim-python-pep8-indentation
-
[Q] Auto indentation for python files
The only thing that worked really well for me and which I still use is https://github.com/Vimjas/vim-python-pep8-indent
- what do you guys use treesitter for?
-
Question about nvim, LSP and auto-indenting code
https://github.com/Vimjas/vim-python-pep8-indent works well, but it's slow.
-
A few things I believe would help (neo)vim tremedously
Python requires a third party plugin to be usable, WTF?
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.
What are some alternatives?
When comparing vim-python-pep8-indent and lsp-format.nvim you can also consider the following projects:
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
nvim-autopairs - autopairs for neovim written in lua
formatter.nvim
vim-polyglot - A solid language pack for Vim.
vscode-langservers-extracted - vscode-langservers bin collection.
neovim - Vim-fork focused on extensibility and usability
vscode-eslint - VSCode extension to integrate eslint into VSCode
vim-glsl - Vim runtime files for OpenGL Shading Language
kakoune - mawww's experiment for a better code editor
nvim-treesitter-context - Show code context
vim-python-pep8-indent vs nvim-treesitter
lsp-format.nvim vs null-ls.nvim
vim-python-pep8-indent vs nvim-autopairs
lsp-format.nvim vs formatter.nvim
vim-python-pep8-indent vs vim-polyglot
lsp-format.nvim vs vscode-langservers-extracted
vim-python-pep8-indent vs neovim
lsp-format.nvim vs vscode-eslint
vim-python-pep8-indent vs vim-glsl
lsp-format.nvim vs nvim-treesitter
vim-python-pep8-indent vs kakoune
lsp-format.nvim vs nvim-treesitter-context