dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.57k stars 1.44k forks source link

[ALE v4 Suggestion] Consider providing an ALE command for installing LSPs, linters, and fixers. #4537

Closed pbnj closed 1 year ago

pbnj commented 1 year ago

One very convenient feature I miss from other LSP plugins is the ability to install LSP servers through the vim plugin, like mason.nvim and vim-lsp-settings plugin on top of vim-lsp.

These LSP plugins provide a command to install the LSP or prompt the user to pick from multiple LSP options to be installed based on filetype of the current buffer.

This is extremely useful in remote development setups, like devcontainer, devpod, codespaces, ...etc.

With vim-lsp or mason.nvim, getting started is as quick as syncing/cloning the (n)vim config into the container and running :LspInstallServer or :MasonInstall.

It would be a phenomenal experience if ALE were to have a similar feature (e.g. :ALEInstall) to install/update LSPs, linters, and fixers.

w0rp commented 1 year ago

I think this is best managed through a companion plugin. Ideally a plugin that can also work with Neovim's built in LSP configuration and maybe other plugins also. If you want to build it, I'll host it in the Dense Analysis organization.

pbnj commented 1 year ago

Agreed.

w0rp commented 1 year ago

@pbnj If you create a plugin for this, let me know. I would happily host it under the dense-analysis organisation.