diff options
| author | Marcos Nils <1578458+marcosnils@users.noreply.github.com> | 2022-08-01 17:19:36 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 22:19:36 +0200 |
| commit | 446e51c3cc016640dce7b7bc7ed098c674e9ee3d (patch) | |
| tree | af5df819729ede70eb013fbff2f15300c03195e3 /lua | |
| parent | fix(lua-language-server): cmd fails on Windows when using mason #2039 (diff) | |
| download | nvim-lspconfig-446e51c3cc016640dce7b7bc7ed098c674e9ee3d.tar nvim-lspconfig-446e51c3cc016640dce7b7bc7ed098c674e9ee3d.tar.gz nvim-lspconfig-446e51c3cc016640dce7b7bc7ed098c674e9ee3d.tar.bz2 nvim-lspconfig-446e51c3cc016640dce7b7bc7ed098c674e9ee3d.tar.lz nvim-lspconfig-446e51c3cc016640dce7b7bc7ed098c674e9ee3d.tar.xz nvim-lspconfig-446e51c3cc016640dce7b7bc7ed098c674e9ee3d.tar.zst nvim-lspconfig-446e51c3cc016640dce7b7bc7ed098c674e9ee3d.zip | |
feat: add dagger CUE lsp (#2023)
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/dagger.lua | 22 |
1 files changed, 22 insertions, 0 deletions
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")]], + }, + }, +} |
