From 1489d7c7e737f413a69cda42a4b6f4b22bf734e1 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 1 Sep 2024 23:42:28 -0400 Subject: [PATCH] add nvim-notify --- lazy-lock.json | 1 + lua/plugins/nvim-notify.lua | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 lua/plugins/nvim-notify.lua diff --git a/lazy-lock.json b/lazy-lock.json index 1545394..9ddc85a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -27,6 +27,7 @@ "nvim-lint": { "branch": "master", "commit": "debabca63c0905b59ce596a55a8e33eafdf66342" }, "nvim-lspconfig": { "branch": "master", "commit": "3ad562700d0615818bf358268ac8914f6ce2b079" }, "nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" }, + "nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" }, "nvim-treesitter": { "branch": "master", "commit": "749df308870381979dc098063973f6ace9968ef6" }, "nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" }, "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" }, diff --git a/lua/plugins/nvim-notify.lua b/lua/plugins/nvim-notify.lua new file mode 100644 index 0000000..f30d33f --- /dev/null +++ b/lua/plugins/nvim-notify.lua @@ -0,0 +1,18 @@ +return { + 'rcarriga/nvim-notify', + keys = { + { + 'sy', + function() + vim.cmd 'Telescope notify' + end, + desc = '[S]earch Notification Histor[y]', + }, + }, + opts = { + timeout = 5000, + }, + init = function() + vim.notify = require 'notify' + end, +}