Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wieerd/auto-lsp.nvim
Automatically detect and setup language servers available on your system.
https://github.com/wieerd/auto-lsp.nvim
language-server lsp lspconfig lua neovim nvim vim
Last synced: about 1 month ago
JSON representation
Automatically detect and setup language servers available on your system.
- Host: GitHub
- URL: https://github.com/wieerd/auto-lsp.nvim
- Owner: WieeRd
- License: apache-2.0
- Created: 2024-08-16T16:03:43.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-09-17T11:01:14.000Z (2 months ago)
- Last Synced: 2024-09-29T06:03:11.850Z (about 2 months ago)
- Topics: language-server, lsp, lspconfig, lua, neovim, nvim, vim
- Language: Lua
- Homepage:
- Size: 87.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auto-LSP.nvim
Automatically detect and setup language servers available on your system.
1. Have this plugin installed and setup.
2. Have language servers installed.
3. The servers will automatically attach to Neovim.This works for nearly every server listed in [nvim-lspconfig].
[nvim-lspconfig]: https://github.com/neovim/nvim-lspconfig
## Installation
### [lazy.nvim]
```lua
{
"WieeRd/auto-lsp.nvim",
dependencies = { "neovim/nvim-lspconfig" },
event = "VeryLazy",
opts = {},
},
```[lazy.nvim]: https://github.com/folke/lazy.nvim
### [vim-plug]
```vim
Plug 'neovim/nvim-lspconfig'
Plug 'WieeRd/auto-lsp.nvim'
``````vim
lua require("auto-lsp").setup()
```[vim-plug]: https://github.com/junegunn/vim-plug
## Configuration
If you read this, send a death threat to the author to get him working on the docs.
## Commands
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.