100 lines
3.5 KiB
Lua
100 lines
3.5 KiB
Lua
return {
|
|
{
|
|
"folke/noice.nvim",
|
|
event = "VeryLazy",
|
|
enabled = true,
|
|
dependencies = {
|
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
|
"MunifTanjim/nui.nvim",
|
|
},
|
|
config = function ()
|
|
local noice = require("noice")
|
|
|
|
noice.setup({
|
|
cmdline = {
|
|
enabled = false,
|
|
view = "cmdline_popup",
|
|
format = {
|
|
cmdline = { pattern = "", icon = " :", lang = "vim" },
|
|
help = { pattern = "^:%s*he?l?p?%s+", icon = " :" },
|
|
search_down = { kind = "search", pattern = "^/", icon = "/", lang = "regex" },
|
|
search_up = { kind = "search", pattern = "^%?", icon = "/", lang = "regex" },
|
|
filter = { pattern = "^:%s*!", icon = " $ :", lang = "bash" },
|
|
lua = {
|
|
pattern = { "^:%s*lua%s+", "^:%s*lua%s*=%s*", "^:%s*=%s*" },
|
|
icon = " :",
|
|
lang = "lua",
|
|
},
|
|
input = { view = "cmdline_input", icon = " :" }, -- Used by input()
|
|
},
|
|
},
|
|
views = {
|
|
popupmenu = {
|
|
relative = "editor",
|
|
position = {
|
|
row = 8,
|
|
col = "50%",
|
|
},
|
|
win_options = {
|
|
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
|
|
},
|
|
},
|
|
mini = {
|
|
size = {
|
|
width = "auto",
|
|
height = "auto",
|
|
max_height = 15,
|
|
},
|
|
position = {
|
|
row = -2,
|
|
col = "100%",
|
|
},
|
|
}
|
|
},
|
|
lsp = {
|
|
progress = {
|
|
enabled = true,
|
|
},
|
|
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
|
override = {
|
|
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
|
["vim.lsp.util.stylize_markdown"] = true,
|
|
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
|
|
},
|
|
signature = {
|
|
auto_open = { enabled = false }, -- disable auto signature help on insert mode
|
|
},
|
|
},
|
|
routes = {
|
|
{
|
|
filter = {
|
|
event = 'msg_show',
|
|
any = {
|
|
{ find = '%d+L, %d+B' },
|
|
{ find = '; after #%d+' },
|
|
{ find = '; before #%d+' },
|
|
{ find = '%d fewer lines' },
|
|
{ find = '%d more lines' },
|
|
},
|
|
},
|
|
opts = { skip = true },
|
|
}
|
|
},
|
|
messages = {
|
|
enabled = false,
|
|
},
|
|
health = {
|
|
checker = true,
|
|
},
|
|
popupmenu = {
|
|
enabled = true,
|
|
backend = "cmp",
|
|
},
|
|
signature = {
|
|
enabled = true,
|
|
},
|
|
})
|
|
end
|
|
}
|
|
}
|