aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-06-24 14:01:35 +0900
committerGitHub <noreply@github.com>2020-06-24 14:01:35 +0900
commit7446e6dca06b376ffe502d2752fa3ceb5ce5bb25 (patch)
tree107d3fcc782c847dacdea0f306d3367b47783c2f /lua/nvim_lsp
parentMerge pull request #284 from fsouza/add-jedi-language-server (diff)
parentpyls: fix definition of root dir to match the docs (diff)
downloadnvim-lspconfig-7446e6dca06b376ffe502d2752fa3ceb5ce5bb25.tar
nvim-lspconfig-7446e6dca06b376ffe502d2752fa3ceb5ce5bb25.tar.gz
nvim-lspconfig-7446e6dca06b376ffe502d2752fa3ceb5ce5bb25.tar.bz2
nvim-lspconfig-7446e6dca06b376ffe502d2752fa3ceb5ce5bb25.tar.lz
nvim-lspconfig-7446e6dca06b376ffe502d2752fa3ceb5ce5bb25.tar.xz
nvim-lspconfig-7446e6dca06b376ffe502d2752fa3ceb5ce5bb25.tar.zst
nvim-lspconfig-7446e6dca06b376ffe502d2752fa3ceb5ce5bb25.zip
Merge pull request #283 from fsouza/fix-pyls-pyls_ms-default-root
pyls: fix definition of root dir to match the docs
Diffstat (limited to 'lua/nvim_lsp')
-rw-r--r--lua/nvim_lsp/pyls.lua3
1 files changed, 1 insertions, 2 deletions
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 = {