vim-python-pep8-indent
A nicer Python indentation style for vim. (by Vimjas)
tree-sitter-python
Python grammar for tree-sitter (by tree-sitter)
vim-python-pep8-indent | tree-sitter-python | |
---|---|---|
12 | 5 | |
779 | 317 | |
0.0% | 3.2% | |
0.0 | 7.5 | |
over 1 year ago | 5 days ago | |
Ruby | JavaScript | |
Creative Commons Zero v1.0 Universal | MIT License |
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?
tree-sitter-python
Posts with mentions or reviews of tree-sitter-python.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-19.
-
Emacs and Java Development: Corfu + Cape + LSP-Mode + Treesit
(use-package treesit :ensure nil :custom ;; Some stuff taken from here: https://robbmann.io/posts/emacs-treesit-auto/ (treesit-extra-load-path '("/usr/lib64/")) (treesit-language-source-alist '((bash . ("https://github.com/tree-sitter/tree-sitter-bash")) (c . ("https://github.com/tree-sitter/tree-sitter-c")) (c++ . ("https://github.com/tree-sitter/tree-sitter-cpp")) (csharp . ("https://github.com/tree-sitter/tree-sitter-c-sharp")) (css . ("https://github.com/tree-sitter/tree-sitter-css")) (elixir ("https://github.com/elixir-lang/tree-sitter-elixir")) (html . ("https://github.com/tree-sitter/tree-sitter-html")) (java . ("https://github.com/tree-sitter/tree-sitter-java")) (javascript . ("https://github.com/tree-sitter/tree-sitter-javascript")) (json . ("https://github.com/tree-sitter/tree-sitter-json")) (lua . ("https://github.com/Azganoth/tree-sitter-lua")) (makefile . ("https://github.com/alemuller/tree-sitter-make")) (org . ("https://github.com/milisims/tree-sitter-org")) (python . ("https://github.com/tree-sitter/tree-sitter-python")) (tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")) (typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")) (ruby . ("https://github.com/tree-sitter/tree-sitter-ruby")) (rust . ("https://github.com/tree-sitter/tree-sitter-rust")) (sql . ("https://github.com/m-novikov/tree-sitter-sql")) (toml . ("https://github.com/tree-sitter/tree-sitter-toml")) (yaml . ("https://github.com/ikatyang/tree-sitter-yaml")))) (major-mode-remap-alist '((c-mode . c-ts-mode) (c++-mode . c++-ts-mode) (csharp-mode . csharp-ts-mode) (css-mode . css-ts-mode) (html-mode . html-ts-mode) (java-mode . java-ts-mode) (js-mode . js-ts-mode) (json-mode . json-ts-mode) (makefile-mode . makefile-ts-mode) ;; (org-mode . org-ts-mode) ;; not mature yet (python-mode . python-ts-mode) (typescript-mode . typescript-ts-mode) (ruby-mode . ruby-ts-mode) (rust-mode . rust-ts-mode) (toml-mode . toml-ts-mode) (yaml-mode . yaml-ts-mode))) (treesit-auto-fallback-alist '((toml-ts-mode . conf-toml-mode) (typescript-ts-mode . nil) (tsx-ts-mode . nil))) (treesit-font-lock-settings t) (treesit-simple-indent t) (treesit-defun-type-regexp t)) (use-package treesit-auto :demand t :config (setq treesit-auto-install t) (global-treesit-auto-mode))
- Building tree-sitter languages for Emacs
-
what do you guys use treesitter for?
i dont see the issue reported in the python parser: https://github.com/tree-sitter/tree-sitter-python/issues
-
Custom treesitter python highlight for __dunder__ methods
How can we add different highlight for __dunder__ methods a.k.a. magic methods? Is there a TS highlight group for that? I know that in tree-sitter-python there is pythonTSConstructor for __init__ method that I can customize, but I couldn't figure out for other magic methods.
-
Emacs for Python 3.10
You could try elisp-tree-sitter as soon as this issue is closed.
What are some alternatives?
When comparing vim-python-pep8-indent and tree-sitter-python you can also consider the following projects:
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
lsp-mode - Emacs client/library for the Language Server Protocol
nvim-autopairs - autopairs for neovim written in lua
tree-sitter-rust - Rust grammar for tree-sitter
vim-polyglot - A solid language pack for Vim.
tree-sitter-typescript - TypeScript grammar for tree-sitter
neovim - Vim-fork focused on extensibility and usability
tree-sitter-c-sharp - C# Grammar for tree-sitter
lsp-format.nvim - A wrapper around Neovims native LSP formatting.
tree-sitter-vue - Vue grammar for tree-sitter
vim-glsl - Vim runtime files for OpenGL Shading Language
tree-sitter-zig - Tree-sitter package for the Zig programming language
vim-python-pep8-indent vs nvim-treesitter
tree-sitter-python vs lsp-mode
vim-python-pep8-indent vs nvim-autopairs
tree-sitter-python vs tree-sitter-rust
vim-python-pep8-indent vs vim-polyglot
tree-sitter-python vs tree-sitter-typescript
vim-python-pep8-indent vs neovim
tree-sitter-python vs tree-sitter-c-sharp
vim-python-pep8-indent vs lsp-format.nvim
tree-sitter-python vs tree-sitter-vue
vim-python-pep8-indent vs vim-glsl
tree-sitter-python vs tree-sitter-zig