From fbe3dc60f88c93828e771710e07af1db8700ac53 Mon Sep 17 00:00:00 2001 From: xb-bx <62838816+xb-bx@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:15:03 +0300 Subject: feat: add c3-lsp support (#3299) * feat: add c3-lsp support * fix: merge root_pattern --- lua/lspconfig/server_configurations/c3_lsp.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lua/lspconfig/server_configurations/c3_lsp.lua (limited to 'lua') 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")]], + }, + }, +} -- cgit v1.2.3-70-g09d2