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/python.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'ftplugin/python.lua') diff --git a/ftplugin/python.lua b/ftplugin/python.lua index bfb17a3b..d6b98116 100644 --- a/ftplugin/python.lua +++ b/ftplugin/python.lua @@ -25,6 +25,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/", "requirements.txt"), filetypes = { "python" }, settings = { rootMarkers = { ".git/", "requirements.txt" }, -- cgit v1.2.3