Skip to content

Commit

Permalink
fix(pyright): re-enable single-file mode (#2730)
Browse files Browse the repository at this point in the history
* fix(pyright): re-enable single-file mode

* fix(pyright): re-enable single-file mode

* fix(pyright): re-enable single-file mode
  • Loading branch information
anthony-S93 authored Jul 21, 2023
1 parent 6c53bf7 commit dd11ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/pyright.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ return {
cmd = { 'pyright-langserver', '--stdio' },
filetypes = { 'python' },
root_dir = function(fname)
return util.root_pattern(unpack(root_files))(fname) or vim.loop.cwd()
return util.root_pattern(unpack(root_files))(fname)
end,
single_file_support = true,
settings = {
Expand Down

0 comments on commit dd11ba7

Please sign in to comment.