From 446e51c3cc016640dce7b7bc7ed098c674e9ee3d Mon Sep 17 00:00:00 2001 From: Marcos Nils <1578458+marcosnils@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:19:36 -0300 Subject: feat: add dagger CUE lsp (#2023) Signed-off-by: Marcos Lilljedahl --- lua/lspconfig/server_configurations/dagger.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/lspconfig/server_configurations/dagger.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/dagger.lua b/lua/lspconfig/server_configurations/dagger.lua new file mode 100644 index 00000000..734249fa --- /dev/null +++ b/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")]], + }, + }, +} -- cgit v1.2.3-70-g09d2