2022-05-11 21:00:57 -05:00
|
|
|
require('notify').setup({
|
|
|
|
-- Animation style (see below for details)
|
|
|
|
stages = 'fade_in_slide_out',
|
2022-01-15 19:15:09 -06:00
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
-- Function called when a new window is opened, use for changing win settings/config
|
|
|
|
on_open = nil,
|
2022-01-15 19:15:09 -06:00
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
-- Function called when a window is closed
|
|
|
|
on_close = nil,
|
2022-01-15 19:15:09 -06:00
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
-- Render function for notifications. See notify-render()
|
|
|
|
render = 'default',
|
2022-01-15 19:15:09 -06:00
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
-- Default timeout for notifications
|
|
|
|
timeout = 5000,
|
2022-01-15 19:15:09 -06:00
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
-- For stages that change opacity this is treated as the highlight behind the window
|
|
|
|
-- Set this to either a highlight group, an RGB hex value e.g. "#000000" or a function returning an RGB code for dynamic values
|
|
|
|
background_colour = '#000000',
|
2022-01-15 19:15:09 -06:00
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
-- Minimum width for notification windows
|
|
|
|
minimum_width = 50,
|
2022-01-15 19:15:09 -06:00
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
-- Icons for the different levels
|
|
|
|
icons = {
|
|
|
|
ERROR = '',
|
|
|
|
WARN = '',
|
|
|
|
INFO = '',
|
|
|
|
DEBUG = '',
|
|
|
|
TRACE = '✎',
|
|
|
|
},
|
2022-01-15 19:15:09 -06:00
|
|
|
})
|
|
|
|
|
2022-05-11 21:00:57 -05:00
|
|
|
vim.notify = require('notify')
|