Skip to content

Commit

Permalink
fix(char): never add mappings for mapleader and maplocalleader
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 14, 2023
1 parent 610ade9 commit 6e3dab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/flash/plugins/char.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ function M.setup()
local keys = {}

for k, v in pairs(Config.modes.char.keys) do
keys[type(k) == "number" and v or k] = v
if vim.g.mapleader ~= v and vim.g.maplocalleader ~= v then
keys[type(k) == "number" and v or k] = v
end
end

for _, key in ipairs({ "f", "F", "t", "T", ";", "," }) do
Expand Down

0 comments on commit 6e3dab6

Please sign in to comment.