Skip to content

Commit

Permalink
feat: better defaults for history and last
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 28, 2022
1 parent 7beef93 commit cdb25b8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions lua/noice/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,29 @@ function M.defaults()
-- options for the message history that you get with `:Noice`
view = "split",
opts = { enter = true, format = "details" },
filter = { event = { "msg_show", "notify" }, ["not"] = { kind = { "search_count", "echo" } } },
filter = {
any = {
{ event = "notify" },
{ error = true },
{ warning = true },
{ event = "msg_show", kind = { "" } },
{ event = "lsp", kind = "message" },
},
},
},
-- :Noice last
last = {
view = "popup",
opts = { enter = true, format = "details" },
filter = { event = { "msg_show", "notify" }, ["not"] = { kind = { "search_count", "echo" } } },
filter = {
any = {
{ event = "notify" },
{ error = true },
{ warning = true },
{ event = "msg_show", kind = { "" } },
{ event = "lsp", kind = "message" },
},
},
filter_opts = { count = 1 },
},
-- :Noice errors
Expand Down

0 comments on commit cdb25b8

Please sign in to comment.