Automatically detect and setup language servers available on your system.
- Have
auto-lsp.nvim
installed and setup. - Have language servers installed.
lspconfig[server].setup()
is called automatically for each server.
As simple as that! Enjoy the fully automated integration with language servers.
{
"WieeRd/auto-lsp.nvim",
dependencies = { "neovim/nvim-lspconfig" },
event = "VeryLazy",
opts = {},
},
Plug 'neovim/nvim-lspconfig'
Plug 'WieeRd/auto-lsp.nvim'
lua require("auto-lsp").setup()
If you read this, send a death threat to the author to get him working on the docs.
You can inspect and control some of the internals of the plugin using :AutoLsp
.
See the list of checked filetypes and servers.
Open the generated server mappings file in a new window.
Clear the cache and regenerate the server mappings.
Each server is checked only once for its availability.
This command will recheck unavailable servers to detect newly installed ones.
FocusGained
and TermLeave
event will automatically trigger a refresh,
so you don't normally need to run this manually.