Files
neovim-config/lua/taken/plugins/noice.lua
2025-02-26 18:59:27 +01:00

83 lines
2.4 KiB
Lua

--- @type LazyPluginSpec
return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
config = function()
local noice = require("noice")
noice.setup({
views = {
cmdline_popup = {
position = {
row = "85%",
col = "50%",
},
size = {
width = "50%",
height = "auto",
},
},
popupmenu = {
relative = "editor",
position = {
row = 8,
col = "50%",
},
size = {
width = 60,
height = 10,
},
border = {
style = "rounded",
padding = { 0, 1 },
},
win_options = {
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
},
},
},
commands = {
history = {
view = "popup",
},
},
routes = {
{
filter = {
event = "msg_show",
kind = "",
find = "written",
},
opts = { skip = true },
},
},
lsp = {
progress = {
enabled = false,
},
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
hover = {
silent = true,
},
},
presets = {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
inc_rename = true,
lsp_doc_border = true,
},
})
vim.keymap.set("n", "<leader>td", ":NoiceDismis<CR>", { desc = "Dismiss noice messages", silent = true })
end,
}