Skip to content

Commit

Permalink
fix(pyright): fix root_dir detection (#2727)
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan authored Jul 20, 2023
1 parent 443c56a commit 6c53bf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspconfig/server_configurations/pyright.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ return {
default_config = {
cmd = { 'pyright-langserver', '--stdio' },
filetypes = { 'python' },
root_dir = function()
return util.root_pattern(unpack(root_files))() or vim.loop.cwd()
root_dir = function(fname)
return util.root_pattern(unpack(root_files))(fname) or vim.loop.cwd()
end,
single_file_support = true,
settings = {
Expand Down

0 comments on commit 6c53bf7

Please sign in to comment.