Archived
0
0
Fork 0

added neovim notify support

This commit is contained in:
Daryl Ronningen 2022-07-06 02:28:14 +08:00
parent b347422333
commit 3aa722a3df
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 25 additions and 0 deletions

View file

@ -23,3 +23,4 @@ require("user.colorizer")
require("user.discord") require("user.discord")
require("user.spectre") require("user.spectre")
require("user.dap") require("user.dap")
require("user.notify")

View file

@ -0,0 +1,16 @@
local status_ok, notify = pcall(require, "notify")
if not status_ok then
return
end
notify.setup({
stages = "fade_in_slide_out",
on_open = nil,
on_close = nil,
render = "default",
timeout = 175,
background_colour = "Normal",
minimum_width = 10,
})
vim.notify = notify

View file

@ -149,6 +149,9 @@ return packer.startup(function(use)
-- Spectre -- Spectre
use("windwp/nvim-spectre") use("windwp/nvim-spectre")
-- Notify
use("rcarriga/nvim-notify")
if PACKER_BOOTSTRAP then if PACKER_BOOTSTRAP then
require("packer").sync() require("packer").sync()
end end

View file

@ -224,6 +224,11 @@ _G.packer_plugins = {
path = "/home/relms/.local/share/nvim/site/pack/packer/start/nvim-navic", path = "/home/relms/.local/share/nvim/site/pack/packer/start/nvim-navic",
url = "https://github.com/SmiteshP/nvim-navic" url = "https://github.com/SmiteshP/nvim-navic"
}, },
["nvim-notify"] = {
loaded = true,
path = "/home/relms/.local/share/nvim/site/pack/packer/start/nvim-notify",
url = "https://github.com/rcarriga/nvim-notify"
},
["nvim-spectre"] = { ["nvim-spectre"] = {
loaded = true, loaded = true,
path = "/home/relms/.local/share/nvim/site/pack/packer/start/nvim-spectre", path = "/home/relms/.local/share/nvim/site/pack/packer/start/nvim-spectre",