summaryrefslogtreecommitdiff
path: root/ftplugin/sh.lua
diff options
context:
space:
mode:
authorPasi Bergman <[email protected]>2021-07-13 00:03:20 +0300
committerGitHub <[email protected]>2021-07-12 17:03:20 -0400
commitab103baf51273c994b7f219e96646a9222d6c7e6 (patch)
tree49fa29bcc70761c4e14ae6e9e91a7bd98437dda6 /ftplugin/sh.lua
parentabdf383aa93b70416db33025d93ed64ad1adea3c (diff)
Set root_dir for efm-langserver configurations (#899)
Diffstat (limited to 'ftplugin/sh.lua')
-rw-r--r--ftplugin/sh.lua1
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/" },