From 1e20c0b29e67e6cd87252cf8fd697906622bfdd3 Mon Sep 17 00:00:00 2001 From: francisco souza Date: Fri, 19 Jun 2020 21:33:57 -0400 Subject: pyls: fix definition of root dir to match the docs --- lua/nvim_lsp/pyls.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/nvim_lsp/pyls.lua b/lua/nvim_lsp/pyls.lua index 5c2bfc7c..6d4aeb56 100644 --- a/lua/nvim_lsp/pyls.lua +++ b/lua/nvim_lsp/pyls.lua @@ -1,12 +1,11 @@ local configs = require 'nvim_lsp/configs' -local util = require 'nvim_lsp/util' configs.pyls = { default_config = { cmd = {"pyls"}; filetypes = {"python"}; root_dir = function(fname) - return util.path.dirname(fname) + return vim.fn.getcwd() end; }; docs = { -- cgit v1.2.3-70-g09d2