dotfiles/dot_config/nvim/after/plugin/noice.lua
2026-02-06 09:15:12 +01:00

54 lines
1.1 KiB
Lua

-- English comments only.
local ok_notify, notify = pcall(require, "notify")
if ok_notify then
notify.setup({
stages = "fade_in_slide_out",
timeout = 2000,
render = "wrapped-compact",
})
vim.notify = notify
end
local ok_noice, noice = pcall(require, "noice")
if not ok_noice then return end
noice.setup({
presets = {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
inc_rename = false,
lsp_doc_border = true,
},
cmdline = {
enabled = true,
view = "cmdline_popup",
format = {
-- Force / to use the popup view
search_down = {
kind = "search",
pattern = "^/",
icon = " ",
lang = "regex",
view = "cmdline_popup",
},
-- Force ? to use the popup view as well
search_up = {
kind = "search",
pattern = "^%?",
icon = " ",
lang = "regex",
view = "cmdline_popup",
},
},
},
lsp = {
progress = { enabled = true },
hover = { enabled = true },
signature = { enabled = true },
},
})