diff options
Diffstat (limited to 'lsp/pyright.lua')
| -rw-r--r-- | lsp/pyright.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lsp/pyright.lua b/lsp/pyright.lua index b67afffd..b73407c2 100644 --- a/lsp/pyright.lua +++ b/lsp/pyright.lua @@ -12,7 +12,8 @@ local function set_python_path(command) } for _, client in ipairs(clients) do if client.settings then - client.settings.python = vim.tbl_deep_extend('force', client.settings.python, { pythonPath = path }) + client.settings.python = + vim.tbl_deep_extend('force', client.settings.python --[[@as table]], { pythonPath = path }) else client.config.settings = vim.tbl_deep_extend('force', client.config.settings, { python = { pythonPath = path } }) end @@ -52,6 +53,7 @@ return { -- Using client.request() directly because "pyright.organizeimports" is private -- (not advertised via capabilities), which client:exec_cmd() refuses to call. -- https://github.com/neovim/neovim/blob/c333d64663d3b6e0dd9aa440e433d346af4a3d81/runtime/lua/vim/lsp/client.lua#L1024-L1030 + ---@diagnostic disable-next-line: param-type-mismatch client.request('workspace/executeCommand', params, nil, bufnr) end, { desc = 'Organize Imports', |
