How does vim.lsp.buf.format() deal with multiple attached LSP clients?

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.

  • I'm setting up null-ls.nvim, primarily for formatting. A lot of language servers already have formatting built in, for instance tsserver, but I want to use prettier because that's what we use at work. How does Neovim deal with multiple LSP clients when I call vim.lsp.buf.format()? Now it just formats, but I'm not sure if its from tsserver or from prettier.

  • LazyVim

    Neovim config for the lazy

  • You can just copy/paste the relevant parts from here https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/lsp/format.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.

    InfluxDB logo
  • dotfiles

    Dmitry Demenchuk does dotfiles (by mrded)

  • formatter.nvim

  • I've had really good experience with formatter-nvim.

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