Skip to content

Commit 1909fda

Browse files
committed
feat: add c3-lsp support
1 parent d88ae66 commit 1909fda

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
local util = require 'lspconfig.util'
2+
3+
return {
4+
default_config = {
5+
cmd = { 'c3lsp' },
6+
root_dir = function(fname)
7+
return util.root_pattern 'project.json'(fname) or util.root_pattern '.git'(fname)
8+
end,
9+
filetypes = { 'c3', 'c3i' },
10+
},
11+
docs = {
12+
description = [[
13+
https://github.com/pherrymason/c3-lsp
14+
15+
Language Server for c3.
16+
]],
17+
default_config = {
18+
root_dir = [[root_pattern("project.json", ".git")]],
19+
},
20+
},
21+
}

0 commit comments

Comments
 (0)