mirror of
https://github.com/neovim/neovim.git
synced 2026-08-27 17:41:48 +00:00
feat(dir): open cwd with 1- #40948
This commit is contained in:
@@ -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