diff options
| author | DrummyFloyd <jonathan.monnet28@gmail.com> | 2024-09-10 07:34:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-10 13:34:46 +0800 |
| commit | e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a (patch) | |
| tree | 20aabe9f3c1b71667ec35ac43d9ed5a51cc324dc /lua/lspconfig/server_configurations/kcl.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a.tar nvim-lspconfig-e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a.tar.gz nvim-lspconfig-e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a.tar.bz2 nvim-lspconfig-e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a.tar.lz nvim-lspconfig-e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a.tar.xz nvim-lspconfig-e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a.tar.zst nvim-lspconfig-e6b4dd9dd0ba9111a51eab6e30fe340f2bf7ca9a.zip | |
feat(kcl): add kcl-language-server support (#3294)
* feat(kcl): add kcl-language-server support
* fix: typo
Diffstat (limited to 'lua/lspconfig/server_configurations/kcl.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/kcl.lua | 20 |
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")]], + }, + }, +} |
