Compare commits

...

2 commits

Author SHA1 Message Date
Bruno BELANYI f08f24cdba WIP: home: vim: LSP notify
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2023-08-07 15:38:28 +00:00
Bruno BELANYI 5c9394f5e5 WIP: home: vim: notify 2023-08-07 15:38:28 +00:00
4 changed files with 22 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,8 @@ in
# UX improvements
dressing-nvim # Integrate native UI hooks with Telescope etc...
gitsigns-nvim # Fast git UI integration
nvim-notify # Better notification API
nvim-lsp-notify # LSP event notification, using nvim-notify
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,17 @@
local notify = require("notify")
local lsp_notify = require("lsp-notify")
notify.setup({
icons = {
DEBUG = "D",
ERROR = "E",
INFO = "I",
TRACE = "T",
WARN = "W",
},
stages = "slide",
})
vim.notify = notify
lsp_notify.setup({})

View file

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