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
- Build the project binary with
go build main.go
- 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,
})