2023-12-24 10:27:34 +00:00
|
|
|
--[[
|
|
|
|
-- Contains fixes for mappings created by plugins
|
2023-12-24 17:03:11 +00:00
|
|
|
-- Useful because of bépo
|
2024-11-06 08:30:55 +00:00
|
|
|
-- NOTE: not in use right now
|
2023-12-24 10:27:34 +00:00
|
|
|
--]]
|
|
|
|
|
|
|
|
-- Comments.nvim adds `gbc` command, which conflicts with `gb/gé` to move
|
|
|
|
-- between tabs
|
2024-11-06 08:30:55 +00:00
|
|
|
--[[ if vim.fn.maparg("gbc") ~= "" then
|
2023-12-24 10:27:34 +00:00
|
|
|
vim.keymap.del("n", "gbc")
|
|
|
|
vim.keymap.set('n', 'gBc', function()
|
2023-12-25 13:29:10 +00:00
|
|
|
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' })
|
2024-11-06 08:30:55 +00:00
|
|
|
end ]]
|