java lsp code formatting

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • null-ls.nvim

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

  • Personally I like Null LS which hooks in as a language server to provide formatting and linter functionality. Other people prefer standalone formatting plugins as well like Formatter.nvim which is what I used to use before moving to Null.

  • formatter.nvim

  • Personally I like Null LS which hooks in as a language server to provide formatting and linter functionality. Other people prefer standalone formatting plugins as well like Formatter.nvim which is what I used to use before moving to Null.

  • 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
  • nvim-lspconfig

    Quickstart configs for Nvim LSP

  • It seems like it depends on each language server. Some of them provide formatting capabilities, some of them not. For example, I was able to find this about Java’s LSP formatting config. Still, it’s probably a better idea to use standalone formatting plugins for most languages, as far as I know they are far more complete and more customizable than the ones built in to LSPs. If you want them to behave like that LSPs, then use NullLS, which attaches to each buffer as if it was a LS, if want you want is to configure them as you configure LS with lspconfig, then you would have to check if lspconfig has configs for formatters (I don’t think so from what I see here. Maybe the closest you can get to unifying this config (from what I know) it’s overriding the textDocument/formatting hook for each server, but still in that custom function you would likely have to invoke some third party formatting program.

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

  • cpp setting problem

    4 projects | /r/neovim | 6 Dec 2023
  • Please inform me of the plugin(s) enabling these two features

    8 projects | /r/neovim | 29 Mar 2023
  • what is the plugin for showing the function context on top of buffer?

    2 projects | /r/AstroNvim | 27 Nov 2022
  • Most minimal setup for lsp (typescript) and prettier format on save

    2 projects | /r/neovim | 17 Oct 2022
  • Roadmap for learning NeoVim. What's the minimum I need to know to turn NeoVim into an IDE?

    14 projects | /r/neovim | 7 Aug 2022