A pure vim9script, lightweight lsp client.
- No dependencies except the server binaries.
- Utilizes as much of the default features vim can provide.
- Tested and expected to work in vim -u DEFAULTS
- Configurable commands and features
- Vim documentation
- Testing
- More lsp features
- Completion
- GoToDefinition (Hardcoded to "<Enter>")
- Diagnostics
- Formatting (Hardcoded to BufPreWrite event)
- Vim version 9.0 or higher
- Linux
Install using vim-plug. Add the following lines to your .vimrc file:
vim9script
plug#begin()
Plug 'DanielViberg/lsp'
plug#end()
For legacy scripts, use:
call plug#begin()
Plug 'DanielViberg/lsp'
call plug#end()
Configuration file mirrors the format used in this project: lsp.vim WIP
- :LspConf (Edit lsp-config.json)
- :LspRestart (Restart the lsp server)
- :LspDisable (Disabel the lsp server)
- :LspEnable (Enable the lsp server)
- :LspFormat (Format the current buffer)
- :LspGoToDefinition (Go to symbol definition)
-
vim-lsp.vim - Vim 8 lsp.
-
lsp.vim - Vim 9 lsp.
-
coc.nvim - Vim 9 lsp.