o
odinpkg.dev
packages / tool / mylsp

mylsp

43211d6tool

๐Ÿ”” An educational LSP

No license ยท updated 6 months ago

mylsp

A Language Server built for the educational purpose of understanding WHAT LSP is and HOW it works.

Built by referencing:

But it was built instead in odin

To set it up in my config NvChad:

local configs = require("lspconfig.configs")

if not configs.mylsp then
  configs.mylsp = {
    default_config = {
      cmd = { "/path/to/mylsp/mylsp" },
      filetypes = { "markdown" },
      single_file_support = true,
    },
  }

end

lspconfig.mylsp.setup {
  on_attach = on_attach,
  capabilities = capabilities,
}
It likes auto completing `Neovim (BTW)` and approving the word `Neovim`

It likes to error `VS Code` and offer code completions for it

Going to defintion moves you a line up