Skip to content
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@GnikDroy
Comment options

@616b2f
Comment options

Answer selected by 616b2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants