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

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

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. 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

  4. dotfiles

    Dmitry Demenchuk does dotfiles (by mrded)

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