mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06:00
feat(dir): open cwd with 1- #40948
This commit is contained in:
1 parent
fbcb7a056c
commit
e3c5974adf
3 files changed
+15
-11
No files matched your search
@@ -11,6 +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()
|
||||
if vim.v.count == 1 then
|
||||
api.nvim_cmd({ cmd = 'edit', args = { '.' }, magic = { file = false, bar = false } }, {})
|
||||
return
|
||||
end
|
||||
local dir = require('nvim.dir')
|
||||
for _ = 1, vim.v.count1 do
|
||||
dir._open_parent()
|
||||
|
||||
Reference in new issue
Block a user