1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-09-20 15:12:38 +00:00
dotfiles/.config/nvim/lua/plugins/noice.lua

63 lines
967 B
Lua
Raw Normal View History

require("noice").setup({
presets = {
bottom_search = true,
command_palette = false,
},
cmdline = {
view = "cmdline",
},
views = {
mini = {
backend = "mini",
align = "message-left",
2024-02-03 15:22:54 +00:00
focusable = false,
position = {
2023-12-07 15:24:12 +00:00
row = "98%",
col = "0%",
},
2023-12-07 15:24:12 +00:00
border = {
style = "rounded",
},
},
},
messages = {
view_search = false,
},
2024-02-03 15:22:54 +00:00
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
},
routes = {
{
filter = {
event = "lsp",
find = "diagnostics",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "",
find = "escrito", -- localized for "written"
},
opts = { skip = true },
},
{
view = "popup",
filter = {
find = "File larger than",
},
opts = {
size = {
width = 100,
height = 4,
},
},
},
},
})