diff --git a/lua/lspconfig/server_configurations/c3_lsp.lua b/lua/lspconfig/server_configurations/c3_lsp.lua new file mode 100644 index 0000000000..9c2b15daa6 --- /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")]], + }, + }, +}