refactor(nvim): improve noice module loading

This commit is contained in:
Price Hiller 2022-10-07 11:59:41 -05:00
parent cca243ba66
commit cfc1d37dcd
2 changed files with 22 additions and 15 deletions

View File

@ -0,0 +1,21 @@
require("noice").setup({
cmdline = {
view = "cmdline",
},
routes = {
{
filter = {
event = "cmdline",
find = "^%s*[/?]",
},
view = "cmdline",
},
{
view = "confirm",
filter = {
event = "msg_show",
kind = "confirm",
},
},
},
})

View File

@ -42,20 +42,7 @@ return packer.startup({
"folke/noice.nvim", "folke/noice.nvim",
event = "VimEnter", event = "VimEnter",
config = function() config = function()
require("noice").setup({ require("plugins.configs.noice")
cmdline = {
view = "cmdline",
},
routes = {
{
filter = {
event = "cmdline",
find = "^%s*[/?]",
},
view = "cmdline",
},
},
})
-- NOTE: Might be redundant, to check later -- NOTE: Might be redundant, to check later
require("plugins.configs.nvim-notify") require("plugins.configs.nvim-notify")
end, end,
@ -203,7 +190,6 @@ return packer.startup({
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
after = { after = {
"nvim-bufferline.lua", "nvim-bufferline.lua",
"tokyonight.nvim",
}, },
config = function() config = function()
require("plugins.configs.statusline") require("plugins.configs.statusline")