-
|
What I try todo is to call some functions when I select a project via telescope. Many thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
GnikDroy
Jun 7, 2023
Replies: 1 comment 2 replies
-
|
There is no such hook. You can hook into switcher yourself. local switcher = require("projections.switcher")
local original_switch_function = switcher.switch
switcher.switch = function(...)
-- pre hooks here
local result = original_switch_function(...)
-- unconditional post hooks here
if result then
--- post hook that only runs if project switching was successful
end
return result
end |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
616b2f
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no such hook.
You can hook into switcher yourself.