WIP: home: vim: notify

This commit is contained in:
Bruno BELANYI 2022-03-11 10:38:42 +01:00
parent 7ace62da72
commit 5c9394f5e5
4 changed files with 18 additions and 0 deletions

View file

@ -1,4 +1,5 @@
local wk = require("which-key")
local telescope = require("telescope")
local telescope_builtin = require("telescope.builtin")
local keys = {
@ -9,6 +10,7 @@ local keys = {
F = { telescope_builtin.find_files, "Files" },
g = { telescope_builtin.live_grep, "Grep string" },
G = { telescope_builtin.grep_string, "Grep string under cursor" },
n = { telescope.extensions.notify.notify, "Notification history" },
},
}

View file

@ -88,6 +88,7 @@ in
# UX improvements
dressing-nvim # Integrate native UI hooks with Telescope etc...
gitsigns-nvim # Fast git UI integration
nvim-notify # Better notification API
nvim-surround # Deal with pairs, now in Lua
telescope-fzf-native-nvim # Use 'fzf' fuzzy matching algorithm
telescope-lsp-handlers-nvim # Use 'telescope' for various LSP actions

View file

@ -0,0 +1,14 @@
local notify = require("notify")
notify.setup({
icons = {
DEBUG = "D",
ERROR = "E",
INFO = "I",
TRACE = "T",
WARN = "W",
},
stages = "slide",
})
vim.notify = notify

View file

@ -22,3 +22,4 @@ telescope.setup({
telescope.load_extension("fzf")
telescope.load_extension("lsp_handlers")
telescope.load_extension("notify")