Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kcl): add kcl-language-server support
Browse files Browse the repository at this point in the history
DrummyFloyd committed Sep 9, 2024
1 parent 38d4b23 commit aca56e3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lua/lspconfig/server_configurations/kcl.lua
Original file line number Diff line number Diff line change
@@ -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 adn policy language.
]],
default_config = {
root_dir = [[root_pattern(".git")]],
},
},
}

0 comments on commit aca56e3

Please sign in to comment.