added neovim notify support
This commit is contained in:
parent
b347422333
commit
3aa722a3df
4 changed files with 25 additions and 0 deletions
|
@ -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")
|
||||||
|
|
16
.config/nvim/lua/user/notify.lua
Normal file
16
.config/nvim/lua/user/notify.lua
Normal 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
|
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Reference in a new issue