mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 11:30:06 +08:00
fix(guide): fix g
guide map
close https://github.com/SpaceVim/SpaceVim/issues/4931
This commit is contained in:
parent
fc4714f6f6
commit
08719ccab2
@ -133,7 +133,9 @@ local function format_displaystring(map)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local display = vim.g['leaderGuide#displayname']
|
local display = vim.g['leaderGuide#displayname']
|
||||||
vim.cmd('unlet g:leaderGuide#displayname')
|
if vim.g['leaderGuide#displayname'] then
|
||||||
|
vim.cmd('unlet g:leaderGuide#displayname')
|
||||||
|
end
|
||||||
return display
|
return display
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -271,7 +273,7 @@ local function start_parser(key, dict)
|
|||||||
mapd.lhs = cmp.fn.substitute(mapd.lhs, key, '', '')
|
mapd.lhs = cmp.fn.substitute(mapd.lhs, key, '', '')
|
||||||
mapd.lhs = cmp.fn.substitute(mapd.lhs, '<Space>', ' ', 'g')
|
mapd.lhs = cmp.fn.substitute(mapd.lhs, '<Space>', ' ', 'g')
|
||||||
mapd.lhs = cmp.fn.substitute(mapd.lhs, '<Tab>', '<C-I>', 'g')
|
mapd.lhs = cmp.fn.substitute(mapd.lhs, '<Tab>', '<C-I>', 'g')
|
||||||
mapd.rhs = cmp.fn.substitute(mapd.rhs, '<SID>', '<SNR>' .. mapd['sid'] .. '_', 'g')
|
mapd.rhs = cmp.fn.substitute(mapd.rhs, '<SID>', '<SNR>' .. (mapd['sid'] or '') .. '_', 'g')
|
||||||
if mapd.lhs ~= '' and mapd.display ~= 'LeaderGuide.*' then
|
if mapd.lhs ~= '' and mapd.display ~= 'LeaderGuide.*' then
|
||||||
mapd.lhs = string_to_keys(mapd.lhs)
|
mapd.lhs = string_to_keys(mapd.lhs)
|
||||||
if
|
if
|
||||||
|
Loading…
Reference in New Issue
Block a user