Our great sponsors
-
But like the other commenter said, IF you want this via LSP, you can do it via formatting. For that there is either the built-in formatting for a server, or something null-ls or efm-langserver. Here's a good place to look for some of that: https://github.com/lukas-reineke/lsp-format.nvim
-
If you're using treesitter, you probably want to disable python's indent, see https://github.com/nvim-treesitter/nvim-treesitter/issues/1136
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
https://github.com/Vimjas/vim-python-pep8-indent works well, but it's slow.
-
I'm using https://github.com/yioneko/nvim-yati, which doesn't provide default configurations specific to python (especially the one mentioned in the original post), but it works reasonably in most of the other cases.