summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dagger.lua
blob: 734249fa8504b13f06c6c0a274483f2c099ce7d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'cuelsp' },
    filetypes = { 'cue' },
    root_dir = function(fname)
      return util.root_pattern('cue.mod', '.git')(fname)
    end,
    single_file_support = true,
  },
  docs = {
    description = [[
https://github.com/dagger/cuelsp

Dagger's lsp server for cuelang.
]],
    default_config = {
      root_dir = [[root_pattern("cue.mod", ".git")]],
    },
  },
}