fix notify resize

This commit is contained in:
2026-03-27 09:23:48 -05:00
parent 6fa0b8a732
commit a70f1a010c
2 changed files with 22 additions and 30 deletions

View File

@@ -233,6 +233,6 @@ utils.autocmd(
"VimResized", "VimResized",
"*", "*",
function() function()
require("darcula.setup.400_mini_notify").setup() MiniNotify.refresh()
end end
) )

View File

@@ -17,36 +17,28 @@
-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-- --
local M = {} require("mini.notify").setup {
window = {
M.setup = function() config = {
require("mini.notify").setup { row = vim.o.lines - 3,
window = { col = vim.o.columns - 3,
config = { anchor = "SE"
row = vim.o.lines - 3,
col = vim.o.columns - 3,
anchor = "SE"
}
} }
} }
}
vim.notify = vim.notify =
MiniNotify.make_notify( MiniNotify.make_notify(
{ {
DEBUG = {duration = 0}, DEBUG = {duration = 0},
ERROR = {duration = 3500, hl_group = "DiagnosticFloatingError"}, ERROR = {duration = 3500, hl_group = "DiagnosticFloatingError"},
INFO = {duration = 3500, hl_group = "DiagnosticFloatingInfo"}, INFO = {duration = 3500, hl_group = "DiagnosticFloatingInfo"},
OFF = {duration = 0}, OFF = {duration = 0},
TRACE = {duration = 0}, TRACE = {duration = 0},
WARN = {duration = 3500, hl_group = "DiagnosticFloatingWarn"} WARN = {duration = 3500, hl_group = "DiagnosticFloatingWarn"}
} }
) )
vim.cmd("hi! link MiniNotifyBorder NotifyINFOBorder") vim.cmd("hi! link MiniNotifyBorder NotifyINFOBorder")
vim.cmd("hi! link MiniNotifyNormal NotifyINFOBody") vim.cmd("hi! link MiniNotifyNormal NotifyINFOBody")
vim.cmd("hi! link MiniNotifyTitle Number") vim.cmd("hi! link MiniNotifyTitle Number")
end
M.setup()
return M