fix!(mappings): remove some leftover bépo mappings
BREAKING CHANGE: gB comes back to be gb
This commit is contained in:
parent
6e9919da69
commit
89bb298289
@ -1,14 +1,15 @@
|
|||||||
--[[
|
--[[
|
||||||
-- Contains fixes for mappings created by plugins
|
-- Contains fixes for mappings created by plugins
|
||||||
-- Useful because of bépo
|
-- Useful because of bépo
|
||||||
|
-- NOTE: not in use right now
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- Comments.nvim adds `gbc` command, which conflicts with `gb/gé` to move
|
-- Comments.nvim adds `gbc` command, which conflicts with `gb/gé` to move
|
||||||
-- between tabs
|
-- between tabs
|
||||||
if vim.fn.maparg("gbc") ~= "" then
|
--[[ if vim.fn.maparg("gbc") ~= "" then
|
||||||
vim.keymap.del("n", "gbc")
|
vim.keymap.del("n", "gbc")
|
||||||
vim.keymap.set('n', 'gBc', function()
|
vim.keymap.set('n', 'gBc', function()
|
||||||
return vim.api.nvim_get_vvar('count') == 0 and '<Plug>(comment_toggle_blockwise_current)'
|
return vim.api.nvim_get_vvar('count') == 0 and '<Plug>(comment_toggle_blockwise_current)'
|
||||||
or '<Plug>(comment_toggle_blockwise_count)'
|
or '<Plug>(comment_toggle_blockwise_count)'
|
||||||
end, { expr = true, desc = 'Comment toggle current block' })
|
end, { expr = true, desc = 'Comment toggle current block' })
|
||||||
end
|
end ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user