mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
babe425f3f
commit
2429d46435
|
@ -23,6 +23,7 @@ end
|
||||||
local endedit_time = 0
|
local endedit_time = 0
|
||||||
local last_duration = 0
|
local last_duration = 0
|
||||||
local tip
|
local tip
|
||||||
|
local tooltips_enabled = ::TOOLTIPS::
|
||||||
local tooltip_active = false
|
local tooltip_active = false
|
||||||
local cached_prompt = {}
|
local cached_prompt = {}
|
||||||
|
|
||||||
|
@ -216,7 +217,7 @@ function ohmyposh_space(rl_buffer)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if rl.setbinding then
|
if tooltips_enabled and rl.setbinding then
|
||||||
clink.onbeginedit(function () tip = nil cached_prompt = {} end)
|
clink.onbeginedit(function () tip = nil cached_prompt = {} end)
|
||||||
rl.setbinding(' ', [["luafunc:ohmyposh_space"]], 'emacs')
|
rl.setbinding(' ', [["luafunc:ohmyposh_space"]], 'emacs')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue