mirror of
https://github.com/neovim/neovim.git
synced 2026-07-10 03:19:44 +00:00
feat(dir.lua): global "-" default mapping #40426
This commit is contained in:
@@ -18,6 +18,10 @@ vim.keymap.set('n', '<Plug>(nvim-dir-reload)', function()
|
||||
require('nvim.dir')._reload()
|
||||
end, { silent = true, desc = 'Reload directory' })
|
||||
|
||||
if vim.fn.mapcheck('-', 'n') == '' and vim.fn.hasmapto('<Plug>(nvim-dir-up)', 'n') == 0 then
|
||||
vim.keymap.set('n', '-', '<Plug>(nvim-dir-up)', { silent = true, desc = 'Open parent directory' })
|
||||
end
|
||||
|
||||
---@param buf integer
|
||||
---@param path string
|
||||
---@return boolean
|
||||
|
||||
Reference in New Issue
Block a user