diff options
| author | Barrett Ruth <62671086+barrettruth@users.noreply.github.com> | 2026-07-24 03:48:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-24 06:48:47 -0400 |
| commit | 5d76b9836a7c7d49d15bf5530826b7783d098cf4 (patch) | |
| tree | 3d2fa826249fabcd11a7be21674a0475b6fe52fb /runtime/plugin/dir.lua | |
| parent | ce9cc43f23d749261d63c06e1e330cf49b01f533 (diff) | |
| download | rneovim-5d76b9836a7c7d49d15bf5530826b7783d098cf4.tar.gz rneovim-5d76b9836a7c7d49d15bf5530826b7783d098cf4.tar.bz2 rneovim-5d76b9836a7c7d49d15bf5530826b7783d098cf4.zip | |
feat(dir): support counts for parent navigation #40927
Diffstat (limited to 'runtime/plugin/dir.lua')
| -rw-r--r-- | runtime/plugin/dir.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/plugin/dir.lua b/runtime/plugin/dir.lua index 85f3b9e6a1..cf01290c31 100644 --- a/runtime/plugin/dir.lua +++ b/runtime/plugin/dir.lua @@ -11,7 +11,10 @@ vim.keymap.set('n', '<Plug>(nvim-dir-open)', function() end, { silent = true, desc = 'Open directory entry' }) vim.keymap.set('n', '<Plug>(nvim-dir-up)', function() - require('nvim.dir')._open_parent() + local dir = require('nvim.dir') + for _ = 1, vim.v.count1 do + dir._open_parent() + end end, { silent = true, desc = 'Open parent directory' }) vim.keymap.set('n', '<Plug>(nvim-dir-reload)', function() |