aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/dir_spec.lua
diff options
context:
space:
mode:
authorBarrett Ruth <62671086+barrettruth@users.noreply.github.com>2026-07-01 13:45:55 -0500
committerGitHub <noreply@github.com>2026-07-01 14:45:55 -0400
commitdaa229bfde9ceabbb5454a7598d1c9de37cbdbb2 (patch)
treece460c95ee85b65103e5b0d8a9932cf2abf27980 /test/functional/plugin/dir_spec.lua
parent12ea9735f77b81f0fecc7abe712639f88889f7f3 (diff)
downloadrneovim-daa229bfde9ceabbb5454a7598d1c9de37cbdbb2.tar.gz
rneovim-daa229bfde9ceabbb5454a7598d1c9de37cbdbb2.tar.bz2
rneovim-daa229bfde9ceabbb5454a7598d1c9de37cbdbb2.zip
fix(dir): restore loaded plugin guard #40528
Diffstat (limited to 'test/functional/plugin/dir_spec.lua')
-rw-r--r--test/functional/plugin/dir_spec.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/plugin/dir_spec.lua b/test/functional/plugin/dir_spec.lua
index e91bdc11c0..9bd98fac0d 100644
--- a/test/functional/plugin/dir_spec.lua
+++ b/test/functional/plugin/dir_spec.lua
@@ -364,7 +364,7 @@ describe('nvim.dir', function()
eq('', api.nvim_get_option_value('filetype', { buf = 0 }))
end)
- it('coexists with netrw', function()
+ it('coexists with netrw and can be disabled', function()
if t.is_zig_build() then
return pending('broken with build.zig relative runtime paths after chdir')
end
@@ -380,6 +380,13 @@ describe('nvim.dir', function()
command('Explore .')
cd(cwd)
eq('netrw', api.nvim_get_option_value('filetype', { buf = 0 }))
+
+ n.clear({
+ args_rm = { '-u' },
+ args = { '--cmd', 'let g:loaded_nvim_dir_plugin = 1' },
+ })
+ edit(root)
+ eq('netrw', api.nvim_get_option_value('filetype', { buf = 0 }))
end)
it('supports the FileExplorer browse contract', function()