npm.io
1.8.2 • Published 2d agoCLI

lunte-lsp

Licence
Apache-2.0
Version
1.8.2
Deps
1
Size
13 kB
Vulns
0
Weekly
0
Stars
2

lunte-lsp

Language Server Protocol wrapper for Lunte.

Installation

npm install --save-dev lunte lunte-lsp

Usage

lunte-lsp

The server reuses Lunte's analyzer, reads .lunterc / .lunterc.json, and streams diagnostics over stdio.

Neovim

local lspconfig = require('lspconfig')
local configs = require('lspconfig.configs')

configs.lunte = configs.lunte or {
 default_config = {
  cmd = { 'npx', 'lunte-lsp' },
  filetypes = { 'javascript' },
  root_dir = lspconfig.util.find_git_ancestor,
  single_file_support = true,
 },
}

lspconfig.lunte.setup({})

Repository

Monorepo: https://github.com/holepunchto/lunte

License

Apache-2.0