diff options
| author | Aleš Brelih <ales.brelih@gmail.com> | 2024-04-05 13:36:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-05 19:36:42 +0800 |
| commit | 6f118b60bc5ed32899c8508ce466b57f063cbca6 (patch) | |
| tree | 71d2441b987b1f632e68c04038c1dfd1284b1ea4 /lua | |
| parent | feat(snyk-ls): enable snyk code by default (#3092) (diff) | |
| download | nvim-lspconfig-6f118b60bc5ed32899c8508ce466b57f063cbca6.tar nvim-lspconfig-6f118b60bc5ed32899c8508ce466b57f063cbca6.tar.gz nvim-lspconfig-6f118b60bc5ed32899c8508ce466b57f063cbca6.tar.bz2 nvim-lspconfig-6f118b60bc5ed32899c8508ce466b57f063cbca6.tar.lz nvim-lspconfig-6f118b60bc5ed32899c8508ce466b57f063cbca6.tar.xz nvim-lspconfig-6f118b60bc5ed32899c8508ce466b57f063cbca6.tar.zst nvim-lspconfig-6f118b60bc5ed32899c8508ce466b57f063cbca6.zip | |
feat(gitlab_ci_ls): added (#3096)
Added support for Gitlab CI language server.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/gitlab_ci_ls.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/gitlab_ci_ls.lua b/lua/lspconfig/server_configurations/gitlab_ci_ls.lua new file mode 100644 index 00000000..6dde3fc4 --- /dev/null +++ b/lua/lspconfig/server_configurations/gitlab_ci_ls.lua @@ -0,0 +1,33 @@ +local util = require 'lspconfig.util' + +local cache_dir = util.path.join(vim.loop.os_homedir(), '.cache/gitlab-ci-ls/') +return { + default_config = { + cmd = { 'gitlab-ci-ls' }, + filetypes = { 'yaml' }, + root_dir = util.root_pattern('.gitlab*', '.git'), + init_options = { + cache_path = cache_dir, + log_path = util.path.join(cache_dir, 'log/gitlab-ci-ls.log'), + }, + }, + docs = { + description = [[ +https://github.com/alesbrelih/gitlab-ci-ls + +Language Server for Gitlab CI + +`gitlab-ci-ls` can be installed via cargo: +cargo install gitlab-ci-ls +]], + default_config = { + cmd = { 'gitlab-ci-ls' }, + filetypes = { 'yaml' }, + root_dir = util.root_pattern('.gitlab*', '.git'), + init_options = { + cache_path = cache_dir, + log_path = util.path.join(cache_dir, 'log/gitlab-ci-ls.log'), + }, + }, + }, +} |
