-
null-ls.nvim
Discontinued Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
-
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.
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.
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.
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.
Related posts
-
cpp setting problem
-
Please inform me of the plugin(s) enabling these two features
-
what is the plugin for showing the function context on top of buffer?
-
Most minimal setup for lsp (typescript) and prettier format on save
-
Roadmap for learning NeoVim. What's the minimum I need to know to turn NeoVim into an IDE?