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