aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/dir_spec.lua
diff options
context:
space:
mode:
authorBarrett Ruth <62671086+barrettruth@users.noreply.github.com>2026-06-26 05:17:00 -0500
committerGitHub <noreply@github.com>2026-06-26 06:17:00 -0400
commit6576e75eeb7d0a028638748b2009c5eb0eec720f (patch)
treee41e72c3fd5d2f29a276fd05eea4984279dcefe7 /test/functional/plugin/dir_spec.lua
parentea0af5985488fe969365355ad4499fe30799394d (diff)
downloadrneovim-6576e75eeb7d0a028638748b2009c5eb0eec720f.tar.gz
rneovim-6576e75eeb7d0a028638748b2009c5eb0eec720f.tar.bz2
rneovim-6576e75eeb7d0a028638748b2009c5eb0eec720f.zip
feat(dir.lua): global "-" default mapping #40426
Diffstat (limited to 'test/functional/plugin/dir_spec.lua')
-rw-r--r--test/functional/plugin/dir_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/plugin/dir_spec.lua b/test/functional/plugin/dir_spec.lua
index de73effd43..5f15d7d692 100644
--- a/test/functional/plugin/dir_spec.lua
+++ b/test/functional/plugin/dir_spec.lua
@@ -144,6 +144,18 @@ describe('nvim.dir', function()
assert_directory(root)
end)
+ it('maps - to open the parent directory of the current file', function()
+ make_fixture()
+ n.clear({ args_rm = { '-u' } })
+
+ edit(file)
+ feed('-')
+ poke_eventloop()
+
+ assert_directory(root)
+ line_of('alpha.txt')
+ end)
+
it('uses an absolute buffer name for a relative startup directory argument', function()
if t.is_zig_build() then
return pending('broken with build.zig relative runtime paths after chdir')