diff options
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dagger.lua')
-rw-r--r-- | start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dagger.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dagger.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dagger.lua new file mode 100644 index 0000000..734249f --- /dev/null +++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dagger.lua @@ -0,0 +1,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")]], + }, + }, +} |