My neovim config
This commit is contained in:
35
lua/plugins/noice.lua
Normal file
35
lua/plugins/noice.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
return {
|
||||
{ "rcarriga/nvim-notify", init = false, config = true },
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if opts.ensure_installed ~= "all" then
|
||||
opts.ensure_installed = require("astrocore").list_insert_unique(
|
||||
opts.ensure_installed,
|
||||
{ "bash", "markdown", "markdown_inline", "regex", "vim" }
|
||||
)
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
cmdline = { view = "cmdline" },
|
||||
messages = { view_search = false },
|
||||
lsp = {
|
||||
progress = { enabled = false },
|
||||
hover = { enabled = false },
|
||||
signature = { enabled = false },
|
||||
},
|
||||
routes = {
|
||||
{ filter = { event = "msg_show", min_height = 20 }, view = "messages" }, -- send long messages to split
|
||||
{ filter = { event = "msg_show", find = "%d+L,%s%d+B" }, opts = { skip = true } }, -- skip save notifications
|
||||
{ filter = { event = "msg_show", find = "^%d+ more lines$" }, opts = { skip = true } }, -- skip paste notifications
|
||||
{ filter = { event = "msg_show", find = "^%d+ fewer lines$" }, opts = { skip = true } }, -- skip delete notifications
|
||||
{ filter = { event = "msg_show", find = "^%d+ lines yanked$" }, opts = { skip = true } }, -- skip yank notifications
|
||||
},
|
||||
},
|
||||
},
|
||||
lazy = false,
|
||||
}
|
||||
Reference in New Issue
Block a user