aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lsp/basedpyright.lua3
-rw-r--r--lsp/pyright.lua3
2 files changed, 4 insertions, 2 deletions
diff --git a/lsp/basedpyright.lua b/lsp/basedpyright.lua
index e468b94d..5f54c3d2 100644
--- a/lsp/basedpyright.lua
+++ b/lsp/basedpyright.lua
@@ -4,7 +4,8 @@
---
--- `basedpyright`, a static type checker and language server for python
-local function set_python_path(path)
+local function set_python_path(command)
+ local path = command.args
local clients = vim.lsp.get_clients {
bufnr = vim.api.nvim_get_current_buf(),
name = 'basedpyright',
diff --git a/lsp/pyright.lua b/lsp/pyright.lua
index 1a966304..edc802e2 100644
--- a/lsp/pyright.lua
+++ b/lsp/pyright.lua
@@ -4,7 +4,8 @@
---
--- `pyright`, a static type checker and language server for python
-local function set_python_path(path)
+local function set_python_path(command)
+ local path = command.args
local clients = vim.lsp.get_clients {
bufnr = vim.api.nvim_get_current_buf(),
name = 'pyright',