Skip to content

Commit

Permalink
feat: tint windows on startup (#46)
Browse files Browse the repository at this point in the history
Either when restoring a session or starting Neovim with -o, -O, or -p.

Fixes #39.

Co-authored-by: lbrayner <[email protected]>
  • Loading branch information
lbrayner and lbrayner authored Aug 28, 2023
1 parent 80b15a9 commit 9647e6a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/tint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,16 @@ __.setup_all = function(skip_config)

setup_namespaces()
setup_autocmds()

vim.schedule(function()
iterate_all_windows(function(winid, _)
if vim.api.nvim_get_current_win() ~= winid then
vim.api.nvim_win_call(winid, function()
__.on_unfocus()
end)
end
end)
end)
end

--- Setup user configuration, highlight namespaces, and autocommands
Expand Down

0 comments on commit 9647e6a

Please sign in to comment.