From f6cb1e2cb70e9820f5c73d939b9a19c3a1cd6e46 Mon Sep 17 00:00:00 2001 From: "J. Emiliano Deustua" Date: Sat, 28 Dec 2024 21:27:00 -0500 Subject: [PATCH] feat: add cue language server (#3529) * feat: cue language server --------- Co-authored-by: glepnir --- lua/lspconfig/configs/cue.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/lspconfig/configs/cue.lua 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. +]], + }, +}