diff options
| author | delta <darkussdelta@gmail.com> | 2026-04-17 08:10:30 +0200 |
|---|---|---|
| committer | delta <darkussdelta@gmail.com> | 2026-04-17 08:10:30 +0200 |
| commit | a7c79cb5a04562be10347856642a80f0c4be89fc (patch) | |
| tree | 98fac95855d84f5037a1c6f44061cbe94b550600 /.config/nvim/lua/plugins/noice.lua | |
| parent | 225eeafcea67d63a608f9c666faf2a2ef014be4a (diff) | |
Diffstat (limited to '.config/nvim/lua/plugins/noice.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/noice.lua | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/noice.lua b/.config/nvim/lua/plugins/noice.lua new file mode 100644 index 0000000..3c909a9 --- /dev/null +++ b/.config/nvim/lua/plugins/noice.lua @@ -0,0 +1,90 @@ +return { + "folke/noice.nvim", + event = "VeryLazy", + opts = { + cmdline = { + format = { + cmdline = { icon = ":" }, + }, + }, + lsp = { + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, + }, + }, + presets = { + command_palette = true, + long_message_to_split = true, + inc_rename = true, + lsp_doc_border = true, + }, + messages = { + view_search = false, + }, + views = { + confirm_warn = { + backend = "popup", + relative = "editor", + focusable = false, + align = "center", + enter = false, + zindex = 210, + format = { "{confirm}" }, + position = { + row = 3, + col = "50%", + }, + size = "auto", + border = { + style = "rounded", + padding = { 0, 1 }, + text = { + top = " Confirm ", + }, + }, + win_options = { + winhighlight = { + Normal = "NoiceConfirm", + FloatBorder = "PrismiteOrange", + }, + winbar = "", + foldenable = false, + }, + }, + }, + routes = { + { + filter = { + event = "msg_show", + kind = "confirm", + }, + view = "confirm_warn", + }, + { + filter = { + event = "msg_show", + any = { + { find = "Already at newest change" }, + { find = "Already at oldest change" }, + { find = "E486: Pattern not found: .+" }, -- failed search + { find = "%d+ .+ line.?; before #%d+" }, -- undo + { find = "%d+ change; after #%d+" }, -- redo + { find = "%[nvim-treesitter" }, -- treesitter messages + { find = "No treesitter parser found for filetype: " }, -- Treesitter parser not installed + { find = "%d+ lines yanked" }, -- y + { find = "%d+ more lines" }, -- p + { find = "%d+ fewer lines" }, -- d + }, + -- kind = "", + }, + view = "mini", + }, + }, + }, + dependencies = { + "MunifTanjim/nui.nvim", + "rcarriga/nvim-notify", + }, +} |
