aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/c3_lsp.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/c3_lsp.lua b/lua/lspconfig/server_configurations/c3_lsp.lua
new file mode 100644
index 00000000..9c2b15da
--- /dev/null
+++ b/lua/lspconfig/server_configurations/c3_lsp.lua
@@ -0,0 +1,21 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'c3lsp' },
+ root_dir = function(fname)
+ return util.root_pattern { 'project.json', '.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")]],
+ },
+ },
+}