Skip to content

Commit

Permalink
feat: cue language server
Browse files Browse the repository at this point in the history
  • Loading branch information
edeustua committed Dec 26, 2024
1 parent ff2b85a commit 2583aa5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lua/lspconfig/configs/cue.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local util = require 'lspconfig.util'

local root_files = {
'cue.mod',
'.git',
}

return {
default_config = {
cmd = { 'cue', 'lsp' },
filetypes = { 'cue' },
root_dir = function(fname)
return util.root_pattern(unpack(root_files))(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.
]],
},
}

0 comments on commit 2583aa5

Please sign in to comment.