Skip to content

Commit

Permalink
fix(winbar): keybinds after session restore (#307)
Browse files Browse the repository at this point in the history
closes #295.
  • Loading branch information
gorillamoe authored Nov 1, 2024
1 parent ac61243 commit 164dc11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion lua/kulala/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ local FS = require("kulala.utils.fs")
local DB = require("kulala.db")
local INT_PROCESSING = require("kulala.internal_processing")
local FORMATTER = require("kulala.formatter")
local TS = require("kulala.parser.treesitter")
local Logger = require("kulala.logger")
local AsciiUtils = require("kulala.utils.ascii")
local Inspect = require("kulala.parser.inspect")
Expand Down
7 changes: 4 additions & 3 deletions lua/kulala/ui/winbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ M.create_winbar = function(win_id)
local default_view = CONFIG.get().default_view
M.winbar_sethl()
M.toggle_winbar_tab(win_id, default_view)
UICallbacks.add("on_replace_buffer", function(_, new_buffer)
M.winbar_set_key_mapping(new_buffer)
end)
end
end

UICallbacks.add("on_replace_buffer", function(_, new_buffer)
M.winbar_set_key_mapping(new_buffer)
end)

return M

0 comments on commit 164dc11

Please sign in to comment.