aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/kcl.lua20
1 files changed, 20 insertions, 0 deletions
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")]],
+ },
+ },
+}