diff options
| -rw-r--r-- | lua/lspconfig/configs/cue.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/cue.lua b/lua/lspconfig/configs/cue.lua new file mode 100644 index 00000000..05ae06fc --- /dev/null +++ b/lua/lspconfig/configs/cue.lua @@ -0,0 +1,19 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'cue', 'lsp' }, + filetypes = { 'cue' }, + root_dir = function(fname) + return util.root_pattern(unpack({ 'cue.mod', '.git' }))(fname) + end, + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/cue-lang/cue + +CUE makes it easy to validate data, write schemas, and ensure configurations align with policies. +]], + }, +} |
