diff options
Diffstat (limited to 'ftplugin/sh.lua')
-rw-r--r-- | ftplugin/sh.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ftplugin/sh.lua b/ftplugin/sh.lua index c299f2de..2c96dfd1 100644 --- a/ftplugin/sh.lua +++ b/ftplugin/sh.lua @@ -26,6 +26,7 @@ if not require("lv-utils").check_lsp_client_active "efm" then -- init_options = {initializationOptions}, cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" }, init_options = { documentFormatting = true, codeAction = false }, + root_dir = require("lspconfig").util.root_pattern(".git/"), filetypes = { "sh" }, settings = { rootMarkers = { ".git/" }, |