From ab103baf51273c994b7f219e96646a9222d6c7e6 Mon Sep 17 00:00:00 2001 From: Pasi Bergman Date: Tue, 13 Jul 2021 00:03:20 +0300 Subject: Set root_dir for efm-langserver configurations (#899) --- ftplugin/sh.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'ftplugin/sh.lua') 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/" }, -- cgit v1.2.3