dotfiles-ansible/roles/nvim/files/nvim/lua/modules/core/config.lua

30 lines
951 B
Lua

local M = {}
function M.notify()
require('notify').setup {
-- Animation style (see below for details)
stages = 'fade_in_slide_out',
-- Function called when a new window is opened, use for changing win settings/config
on_open = nil,
-- Render function for notifications. See notify-render()
render = 'default',
-- Default timeout for notifications
timeout = 2000,
-- For stages that change opacity this is treated as the highlight behind the window
-- Set this to either a highlight group or an RGB hex value e.g. '#000000'
background_colour = 'NormalFloat',
-- Minimum width for notification windows
minimum_width = 40,
-- Icons for the different levels
icons = {
ERROR = '',
WARN = '',
INFO = '',
DEBUG = '',
TRACE = ''
}
}
end
return M