From 50e87ceb4ef61f62eff1f677973e4eae26b75a87 Mon Sep 17 00:00:00 2001 From: Kostiantyn Liepieshov Date: Thu, 30 Nov 2023 05:36:10 +0000 Subject: feat: add hydra-lsp (#2919) * feat: add hydra_lsp * feat(hydra_lsp): single file support --- lua/lspconfig/server_configurations/hydra_lsp.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/lspconfig/server_configurations/hydra_lsp.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/hydra_lsp.lua b/lua/lspconfig/server_configurations/hydra_lsp.lua new file mode 100644 index 00000000..e162ebe2 --- /dev/null +++ b/lua/lspconfig/server_configurations/hydra_lsp.lua @@ -0,0 +1,20 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'hydra-lsp' }, + filetypes = { 'yaml' }, + root_dir = util.root_pattern '.git', + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/Retsediv/hydra-lsp + +LSP for Hydra Python package config files. +]], + default_config = { + root_dir = [[util.root_pattern '.git']], + }, + }, +} -- cgit v1.2.3-70-g09d2