Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
/ simple-lsp Public archive

Reiventing the wheel to learn more about LSP

Notifications You must be signed in to change notification settings

joseiedo/simple-lsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplelsp

A Language Server built for the educational purpose of understanding WHAT LSP is and HOW it works. This LSP was tested with Neovim, but would likely work inside VS Code.

Original project was made following this lesson By TJ DeVries

Quick setup on neovim

  1. Build the project binary with go build main.go
  2. Setup the LSP in your nvim config
local client = vim.lsp.start_client {
  name = 'educationalsp',
  cmd = { '<path-to-project-binary>' },
}

if not client then
  vim.notify 'Something wrong with the client setup'
  return
end

vim.api.nvim_create_autocmd('FileType', {
  pattern = 'markdown',
  callback = function()
    vim.lsp.buf_attach_client(0, client)
  end,
})

About

Reiventing the wheel to learn more about LSP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages