How to format a part of the file using NeoVim native LSP support?

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
  • efm-langserver

    General purpose Language Server

  • So for now, I moved to try things using efm with black. I still didn't test efm, but I can't find anything in its github repo about formatting only a part of the file.

  • null-ls.nvim

    Discontinued Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.

  • To format only the part of the file,the lsp should support range formatting :h vim.lsp.buf.range_formatting() . Btw if you want an easy way to configure linters and formatters use null-ls.

  • 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.

    InfluxDB logo
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