Automatically detect and setup language servers available on your system.
APACHE-2.0 License
Automatically detect and setup language servers available on your system.
This works for nearly every server listed in nvim-lspconfig.
{
"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
.
:AutoLsp info
See the list of checked filetypes and servers.
:AutoLsp mappings
Open the generated server mappings file in a new window.
:AutoLsp build
Clear the cache and regenerate the server mappings.
:AutoLsp refresh
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.