refactor(nvim): improve noice module loading
This commit is contained in:
parent
cca243ba66
commit
cfc1d37dcd
@ -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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user