WIP: home: vim: notify
This commit is contained in:
parent
7ace62da72
commit
5c9394f5e5
|
@ -1,4 +1,5 @@
|
||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
|
local telescope = require("telescope")
|
||||||
local telescope_builtin = require("telescope.builtin")
|
local telescope_builtin = require("telescope.builtin")
|
||||||
|
|
||||||
local keys = {
|
local keys = {
|
||||||
|
@ -9,6 +10,7 @@ local keys = {
|
||||||
F = { telescope_builtin.find_files, "Files" },
|
F = { telescope_builtin.find_files, "Files" },
|
||||||
g = { telescope_builtin.live_grep, "Grep string" },
|
g = { telescope_builtin.live_grep, "Grep string" },
|
||||||
G = { telescope_builtin.grep_string, "Grep string under cursor" },
|
G = { telescope_builtin.grep_string, "Grep string under cursor" },
|
||||||
|
n = { telescope.extensions.notify.notify, "Notification history" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,7 @@ in
|
||||||
# UX improvements
|
# UX improvements
|
||||||
dressing-nvim # Integrate native UI hooks with Telescope etc...
|
dressing-nvim # Integrate native UI hooks with Telescope etc...
|
||||||
gitsigns-nvim # Fast git UI integration
|
gitsigns-nvim # Fast git UI integration
|
||||||
|
nvim-notify # Better notification API
|
||||||
nvim-surround # Deal with pairs, now in Lua
|
nvim-surround # Deal with pairs, now in Lua
|
||||||
telescope-fzf-native-nvim # Use 'fzf' fuzzy matching algorithm
|
telescope-fzf-native-nvim # Use 'fzf' fuzzy matching algorithm
|
||||||
telescope-lsp-handlers-nvim # Use 'telescope' for various LSP actions
|
telescope-lsp-handlers-nvim # Use 'telescope' for various LSP actions
|
||||||
|
|
14
home/vim/plugin/settings/notify.lua
Normal file
14
home/vim/plugin/settings/notify.lua
Normal 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
|
|
@ -22,3 +22,4 @@ telescope.setup({
|
||||||
|
|
||||||
telescope.load_extension("fzf")
|
telescope.load_extension("fzf")
|
||||||
telescope.load_extension("lsp_handlers")
|
telescope.load_extension("lsp_handlers")
|
||||||
|
telescope.load_extension("notify")
|
||||||
|
|
Loading…
Reference in a new issue