From e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a Mon Sep 17 00:00:00 2001 From: DrummyFloyd Date: Tue, 10 Sep 2024 07:34:46 +0200 Subject: feat(kcl): add kcl-language-server support (#3294) * feat(kcl): add kcl-language-server support * fix: typo --- lua/lspconfig/server_configurations/kcl.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/lspconfig/server_configurations/kcl.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/kcl.lua b/lua/lspconfig/server_configurations/kcl.lua new file mode 100644 index 00000000..0e241ab8 --- /dev/null +++ b/lua/lspconfig/server_configurations/kcl.lua @@ -0,0 +1,20 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'kcl-language-server' }, + filetypes = { 'kcl' }, + root_dir = util.root_pattern '.git', + }, + docs = { + description = [[ +https://github.com/kcl-lang/kcl.nvim + +Language server for the KCL configuration and policy language. + +]], + default_config = { + root_dir = [[root_pattern(".git")]], + }, + }, +} -- cgit v1.2.3-70-g09d2