refactor(nvim): properly set up nvim-notify w/ noice

This commit is contained in:
Price Hiller 2022-10-12 12:19:32 -05:00
parent 76374b1363
commit f91c28f16a
2 changed files with 933 additions and 933 deletions

View File

@ -1,34 +1,34 @@
require('notify').setup({
-- Animation style (see below for details)
stages = 'fade_in_slide_out',
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,
-- Function called when a new window is opened, use for changing win settings/config
on_open = nil,
-- Function called when a window is closed
on_close = nil,
-- Function called when a window is closed
on_close = nil,
-- Render function for notifications. See notify-render()
render = 'default',
-- Render function for notifications. See notify-render()
render = "default",
-- Default timeout for notifications
timeout = 5000,
-- Default timeout for notifications
timeout = 5000,
-- 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',
-- 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",
-- Minimum width for notification windows
minimum_width = 50,
-- Minimum width for notification windows
minimum_width = 50,
-- Icons for the different levels
icons = {
ERROR = '',
WARN = '',
INFO = '',
DEBUG = '',
TRACE = '',
},
-- Icons for the different levels
icons = {
ERROR = "",
WARN = "",
INFO = "",
DEBUG = "",
TRACE = "",
},
})
vim.notify = require('notify')
-- vim.notify = require('notify')

File diff suppressed because it is too large Load Diff