Skip to content

Commit

Permalink
feat: add c3-lsp support
Browse files Browse the repository at this point in the history
  • Loading branch information
xb-bx committed Sep 12, 2024
1 parent d88ae66 commit 1909fda
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lua/lspconfig/server_configurations/c3_lsp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'c3lsp' },
root_dir = function(fname)
return util.root_pattern 'project.json'(fname) or util.root_pattern '.git'(fname)
end,
filetypes = { 'c3', 'c3i' },
},
docs = {
description = [[
https://github.com/pherrymason/c3-lsp
Language Server for c3.
]],
default_config = {
root_dir = [[root_pattern("project.json", ".git")]],
},
},
}

0 comments on commit 1909fda

Please sign in to comment.