nvim-lspinstall icon indicating copy to clipboard operation
nvim-lspinstall copied to clipboard

Install multiple lsp servers with :LspInstall

Open siduck opened this issue 3 years ago • 12 comments

Hi there! It'd be great if lspinstall could install many lsp servers at the same time , like having multiple arguments for :LspInstall , example :

:LspInstall html css js

but this gives me some other error

image

siduck avatar Jun 05 '21 08:06 siduck

Right now this is mainly blocked because we need a proper UI first. Currently every install runs in a terminal split window. Installing 5 language servers at once would open 5 terminal splits which would be very confusing.

kabouzeid avatar Jun 06 '21 12:06 kabouzeid

You can already write a Lua function for this, but as I said it'll open a split window for every server that you install.

https://github.com/kabouzeid/nvim-lspinstall/issues/83#issuecomment-854029170

kabouzeid avatar Jun 06 '21 12:06 kabouzeid

Right now this is mainly blocked because we need a proper UI first. Currently every install runs in a terminal split window. Installing 5 language servers at once would open 5 terminal splits which would be very confusing.

Isnt there something like deleting a buffer without closing its window? if yes then we could just do this :

example : if we run :LspInstall css bash

then lspinstall plugin should do the following

  • open new tab ( is done only once and at the starting)
  • Install css lsp
  • clear its buffer only but not close its window
  • Install bash lsp
  • clear its buffer

siduck avatar Jun 06 '21 12:06 siduck

parallel install would be way faster though 🤔

kabouzeid avatar Jun 06 '21 12:06 kabouzeid

parallel install would be way faster though

oh yes , btw why create splits? cant we just open new tabs? it'll allow parallel install too

siduck avatar Jun 06 '21 13:06 siduck

Using tabs instead of splits might be a good idea. I'll test it out to see how it "feels"

kabouzeid avatar Jun 06 '21 13:06 kabouzeid

@kabouzeid any updates?

siduck avatar Aug 07 '21 03:08 siduck

https://github.com/kabouzeid/nvim-lspinstall/issues/83#issuecomment-854029170 mentions a workaround, but this is a necessary feature so that one can execute post_install_hook only once after multiple LSP servers are intsalled.

wookayin avatar Sep 16 '21 14:09 wookayin

I no longer use lspinstall so I'll be closing this :|

siduck avatar Sep 16 '21 17:09 siduck

I no longer use lspinstall so I'll be closing this :|

What are you using now?

francois-pasquier avatar Sep 16 '21 17:09 francois-pasquier

@siduck76 Please leave this opened -- you are not the only user of this plugin. Many users would still want this feature.

wookayin avatar Sep 16 '21 17:09 wookayin

I no longer use lspinstall so I'll be closing this :|

What are you using now?

Nothing , i was using lspinstall for nvchad to make things more newbie friendly but lspinstall doesn't work properly for windows , I know there's another lspinstaller too but I'm just fine installing lspservers on my system manually.

siduck avatar Sep 16 '21 18:09 siduck