Skip to content

Commit

Permalink
fix(notify): return after closing window
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Apr 1, 2024
1 parent d8055ac commit d68514c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/astronvim/plugins/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ return {
on_open = function(win)
local astrocore = require "astrocore"
vim.api.nvim_win_set_config(win, { zindex = 175 })
if not astrocore.config.features.notifications then vim.api.nvim_win_close(win, true) end
if not astrocore.config.features.notifications then
vim.api.nvim_win_close(win, true)
return
end
if astrocore.is_available "nvim-treesitter" then require("lazy").load { plugins = { "nvim-treesitter" } } end
vim.wo[win].conceallevel = 3
local buf = vim.api.nvim_win_get_buf(win)
Expand Down

0 comments on commit d68514c

Please sign in to comment.