mirror of
https://github.com/neovim/neovim.git
synced 2026-07-14 21:30:34 +00:00
fix(dir): restore loaded plugin guard #40528
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user