diff --git a/lua/lspconfig/configs/cue.lua b/lua/lspconfig/configs/cue.lua new file mode 100644 index 0000000000..05ae06fc67 --- /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. +]], + }, +}