feat: add initial marko-js lsp config (#3228)

This commit is contained in:
Russ 2024-10-04 15:36:24 +10:00 committed by GitHub
parent fb453a1a44
commit 689019219b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,21 @@
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'marko-language-server', '--stdio' },
filetypes = { 'marko' },
root_dir = util.find_git_ancestor,
},
docs = {
description = [[
https://github.com/marko-js/language-server
Using the Language Server Protocol to improve Marko's developer experience.
Can be installed via npm:
```
npm i -g @marko/language-server
```
]],
},
}