Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A lightweight, pure vim9script lsp client

License

DanielViberg/lsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim 9 Language Server Protocol Client

⚠️ Note! Early alpha status, lots of things are hard coded and many things dont work yet.

TL;DR

A pure vim9script, lightweight lsp client.

  1. No dependencies except the server binaries.
  2. Utilizes as much of the default features vim can provide.
  3. Tested and expected to work in vim -u DEFAULTS

WIP

  • Configurable commands and features
  • Vim documentation
  • Testing
  • More lsp features

Features

  • Completion
  • GoToDefinition (Hardcoded to "<Enter>")
  • Diagnostics
  • Formatting (Hardcoded to BufPreWrite event)

Requirements

  • Vim version 9.0 or higher
  • Linux

Installation

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

Configuration file mirrors the format used in this project: lsp.vim WIP

Commands

  • :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)

Similar Plugins

  1. vim-lsp.vim - Vim 8 lsp.

  2. lsp.vim - Vim 9 lsp.

  3. coc.nvim - Vim 9 lsp.

About

A lightweight, pure vim9script lsp client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published