mirror of
https://github.com/zoriya/flake.git
synced 2025-12-05 22:26:21 +00:00
45 lines
753 B
Lua
45 lines
753 B
Lua
return {
|
|
{
|
|
"noice.nvim",
|
|
event = "DeferredUIEnter",
|
|
keys = {
|
|
{ "<leader>zl", "<cmd>Noice<cr>", desc = "List messages" },
|
|
},
|
|
opts = {
|
|
presets = {
|
|
command_palette = true,
|
|
},
|
|
lsp = {
|
|
signature = {
|
|
auto_open = {
|
|
enabled = false,
|
|
},
|
|
},
|
|
},
|
|
views = {
|
|
mini = {
|
|
timeout = 5000,
|
|
reverse = false,
|
|
},
|
|
},
|
|
routes = {
|
|
-- ignore ltex messages
|
|
{
|
|
filter = {
|
|
event = "lsp",
|
|
kind = "progress",
|
|
cond = function(message)
|
|
local client = vim.tbl_get(message.opts, "progress", "client")
|
|
return client == "ltex"
|
|
end,
|
|
},
|
|
opts = { skip = true },
|
|
},
|
|
},
|
|
},
|
|
after = function(plug)
|
|
require("noice").setup(plug.opts)
|
|
end,
|
|
},
|
|
}
|