From 6f118b60bc5ed32899c8508ce466b57f063cbca6 Mon Sep 17 00:00:00 2001 From: Aleš Brelih Date: Fri, 5 Apr 2024 13:36:42 +0200 Subject: feat(gitlab_ci_ls): added (#3096) Added support for Gitlab CI language server. --- .../server_configurations/gitlab_ci_ls.lua | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lua/lspconfig/server_configurations/gitlab_ci_ls.lua (limited to 'lua') 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'), + }, + }, + }, +} -- cgit v1.2.3-70-g09d2