aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorKostiantyn Liepieshov <liepieshov@gmail.com>2023-11-30 05:36:10 +0000
committerGitHub <noreply@github.com>2023-11-30 13:36:10 +0800
commit50e87ceb4ef61f62eff1f677973e4eae26b75a87 (patch)
treeb3404f7607b82d9b6da6755d514148b5d4f168f0 /lua
parentfix(typos_lsp): use configuration file for root detection #2918 (diff)
downloadnvim-lspconfig-50e87ceb4ef61f62eff1f677973e4eae26b75a87.tar
nvim-lspconfig-50e87ceb4ef61f62eff1f677973e4eae26b75a87.tar.gz
nvim-lspconfig-50e87ceb4ef61f62eff1f677973e4eae26b75a87.tar.bz2
nvim-lspconfig-50e87ceb4ef61f62eff1f677973e4eae26b75a87.tar.lz
nvim-lspconfig-50e87ceb4ef61f62eff1f677973e4eae26b75a87.tar.xz
nvim-lspconfig-50e87ceb4ef61f62eff1f677973e4eae26b75a87.tar.zst
nvim-lspconfig-50e87ceb4ef61f62eff1f677973e4eae26b75a87.zip
feat: add hydra-lsp (#2919)
* feat: add hydra_lsp * feat(hydra_lsp): single file support
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/hydra_lsp.lua20
1 files changed, 20 insertions, 0 deletions
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']],
+ },
+ },
+}