Skip to content

Commit

Permalink
feat: add cue language server (#3529)
Browse files Browse the repository at this point in the history
* feat: cue language server


---------

Co-authored-by: glepnir <glephunter@gmail.com>
  • Loading branch information
edeustua and glepnir authored Dec 29, 2024
1 parent 57154fd commit f6cb1e2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lua/lspconfig/configs/cue.lua
Original file line number Diff line number Diff line change
@@ -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.
]],
},
}

0 comments on commit f6cb1e2

Please sign in to comment.