mirror of
https://github.com/neovim/neovim.git
synced 2026-07-14 21:30:34 +00:00
fix(dir): user/plugin can override default "-" mapping #40676
This commit is contained in:
@@ -129,13 +129,6 @@ do
|
||||
--- See |&-default|
|
||||
vim.keymap.set('n', '&', ':&&<CR>', { desc = ':help &-default' })
|
||||
|
||||
vim.keymap.set('n', '-', function()
|
||||
if vim.fn.maparg('<Plug>(nvim-dir-up)', 'n') ~= '' then
|
||||
return '<Plug>(nvim-dir-up)'
|
||||
end
|
||||
return (vim.v.count == 0 and '' or vim.v.count) .. '-'
|
||||
end, { expr = true, silent = true, desc = 'Open parent directory' })
|
||||
|
||||
--- Use Q in Visual mode to execute a macro on each line of the selection. #21422
|
||||
--- This only make sense in linewise Visual mode. #28287
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user