Unmap <C-l> in netrw buffers so it can be used for natigation
This commit is contained in:
parent
ab2d68579f
commit
61d734fbc0
@ -23,3 +23,15 @@ vim.keymap.set('n', '-', function()
|
||||
vim.fn.search('\\<' .. filename .. '\\>')
|
||||
end
|
||||
end)
|
||||
|
||||
-- Unmap <C-l> in netrw buffers so it can be used for natigation
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'netrw',
|
||||
group = vim.api.nvim_create_augroup('netrw_unmap', {}),
|
||||
callback = function()
|
||||
local buffer = vim.api.nvim_get_current_buf()
|
||||
if vim.fn.hasmapto('<Plug>NetrwRefresh') == 1 then
|
||||
vim.keymap.del('n', '<C-l>', { buffer = buffer })
|
||||
end
|
||||
end
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user