Question about nvim, LSP and auto-indenting code

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • lsp-format.nvim

    A wrapper around Neovims native LSP formatting.

    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

  • nvim-treesitter

    Nvim Treesitter configurations and abstraction layer

    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.

  • vim-python-pep8-indent

    A nicer Python indentation style for vim.

    https://github.com/Vimjas/vim-python-pep8-indent works well, but it's slow.

  • nvim-yati

    Yet another tree-sitter powered indent plugin for Neovim.

    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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts