diff options
Diffstat (limited to 'lua/lang/zsh.lua')
| -rw-r--r-- | lua/lang/zsh.lua | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/lang/zsh.lua b/lua/lang/zsh.lua index c81bd96c..44ce35a1 100644 --- a/lua/lang/zsh.lua +++ b/lua/lang/zsh.lua @@ -1,8 +1,11 @@  local M = {}  M.config = function() -  -- TODO: implement config for language -  return "No config available!" +  O.lang.zsh = { +    lsp = { +      path = DATA_PATH .. "/lspinstall/bash/node_modules/.bin/bash-language-server", +    }, +  }  end  M.format = function() @@ -35,7 +38,7 @@ M.lsp = function()    if not require("lv-utils").check_lsp_client_active "bashls" then      -- npm i -g bash-language-server      require("lspconfig").bashls.setup { -      cmd = { DATA_PATH .. "/lspinstall/bash/node_modules/.bin/bash-language-server", "start" }, +      cmd = { O.lang.zsh.lsp.path, "start" },        on_attach = require("lsp").common_on_attach,        filetypes = { "sh", "zsh" },      }  | 
