diff options
author | Pasi Bergman <[email protected]> | 2021-07-13 00:03:20 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-12 17:03:20 -0400 |
commit | ab103baf51273c994b7f219e96646a9222d6c7e6 (patch) | |
tree | 49fa29bcc70761c4e14ae6e9e91a7bd98437dda6 /ftplugin/python.lua | |
parent | abdf383aa93b70416db33025d93ed64ad1adea3c (diff) |
Set root_dir for efm-langserver configurations (#899)
Diffstat (limited to 'ftplugin/python.lua')
-rw-r--r-- | ftplugin/python.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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" }, |