diff options
| author | Barrett Ruth <62671086+barrettruth@users.noreply.github.com> | 2026-06-26 05:17:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-26 06:17:00 -0400 |
| commit | 6576e75eeb7d0a028638748b2009c5eb0eec720f (patch) | |
| tree | e41e72c3fd5d2f29a276fd05eea4984279dcefe7 /test/functional/plugin/dir_spec.lua | |
| parent | ea0af5985488fe969365355ad4499fe30799394d (diff) | |
| download | rneovim-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.lua | 12 |
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') |