fix(noice): dont show old messages when installing plugins
This commit is contained in:
@ -8,9 +8,6 @@ return {
|
|||||||
"pwntester/octo.nvim",
|
"pwntester/octo.nvim",
|
||||||
cmd = "Octo",
|
cmd = "Octo",
|
||||||
event = { { event = "BufReadCmd", pattern = "octo://*" } },
|
event = { { event = "BufReadCmd", pattern = "octo://*" } },
|
||||||
init = function()
|
|
||||||
vim.treesitter.language.register("markdown", "octo")
|
|
||||||
end,
|
|
||||||
opts = {
|
opts = {
|
||||||
enable_builtin = true,
|
enable_builtin = true,
|
||||||
default_to_projects_v2 = true,
|
default_to_projects_v2 = true,
|
||||||
@ -41,6 +38,7 @@ return {
|
|||||||
{
|
{
|
||||||
"pwntester/octo.nvim",
|
"pwntester/octo.nvim",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
|
vim.treesitter.language.register("markdown", "octo")
|
||||||
if LazyVim.has("telescope.nvim") then
|
if LazyVim.has("telescope.nvim") then
|
||||||
opts.picker = "telescope"
|
opts.picker = "telescope"
|
||||||
elseif LazyVim.has("fzf-lua") then
|
elseif LazyVim.has("fzf-lua") then
|
||||||
|
@ -291,6 +291,15 @@ return {
|
|||||||
{ "<c-f>", function() if not require("noice.lsp").scroll(4) then return "<c-f>" end end, silent = true, expr = true, desc = "Scroll Forward", mode = {"i", "n", "s"} },
|
{ "<c-f>", function() if not require("noice.lsp").scroll(4) then return "<c-f>" end end, silent = true, expr = true, desc = "Scroll Forward", mode = {"i", "n", "s"} },
|
||||||
{ "<c-b>", function() if not require("noice.lsp").scroll(-4) then return "<c-b>" end end, silent = true, expr = true, desc = "Scroll Backward", mode = {"i", "n", "s"}},
|
{ "<c-b>", function() if not require("noice.lsp").scroll(-4) then return "<c-b>" end end, silent = true, expr = true, desc = "Scroll Backward", mode = {"i", "n", "s"}},
|
||||||
},
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
-- HACK: noice shows messages from before it was enabled,
|
||||||
|
-- but this is not ideal when Lazy is installing plugins,
|
||||||
|
-- so clear the messages in this case.
|
||||||
|
if vim.o.filetype == "lazy" then
|
||||||
|
vim.cmd([[messages clear]])
|
||||||
|
end
|
||||||
|
require("noice").setup(opts)
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- icons
|
-- icons
|
||||||
|
Reference in New Issue
Block a user