aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/cue.lua
blob: 05ae06fc676bd39ee461e6da920c2206dacab981 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.
]],
  },
}