From dd11ba7b3c8f82d51b6d4dd7d68fce2d78bf78a0 Mon Sep 17 00:00:00 2001 From: Anthony Shi <69449791+anthony-S93@users.noreply.github.com> Date: Fri, 21 Jul 2023 11:07:48 +0800 Subject: [PATCH] fix(pyright): re-enable single-file mode (#2730) * fix(pyright): re-enable single-file mode * fix(pyright): re-enable single-file mode * fix(pyright): re-enable single-file mode --- lua/lspconfig/server_configurations/pyright.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspconfig/server_configurations/pyright.lua b/lua/lspconfig/server_configurations/pyright.lua index 2ae18dca50..2f727418a2 100644 --- a/lua/lspconfig/server_configurations/pyright.lua +++ b/lua/lspconfig/server_configurations/pyright.lua @@ -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 = {