Add after/plugin/mappings.lua to resolve remap conflicts
This commit is contained in:
parent
c0c294c4c8
commit
4e2d151575
13
after/plugin/mappings.lua
Normal file
13
after/plugin/mappings.lua
Normal file
@ -0,0 +1,13 @@
|
||||
--[[
|
||||
-- Contains fixes for mappings created by plugins
|
||||
--]]
|
||||
|
||||
-- Comments.nvim adds `gbc` command, which conflicts with `gb/gé` to move
|
||||
-- between tabs
|
||||
if vim.fn.maparg("gbc") ~= "" then
|
||||
vim.keymap.del("n", "gbc")
|
||||
vim.keymap.set('n', 'gBc', function()
|
||||
return vim.api.nvim_get_vvar('count') == 0 and '<Plug>(comment_toggle_blockwise_current)'
|
||||
or '<Plug>(comment_toggle_blockwise_count)'
|
||||
end, { expr = true, desc = 'Comment toggle current block' })
|
||||
end
|
Loading…
Reference in New Issue
Block a user