Repository navigation
I'm having trouble setting up a working vim.opt.confirm popup #1210
Unanswered
gaston-haro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have
vim.opt.confirm = trueand whenever I try to:qawith an unsaved buffer I get the expected popup:However if I hit 'C' the popup closes and my next
:qawill display a different popup:and I can't figure out why. Here is my config (either with commented or not commented routes the outcome is the same):
{ -- Highly extendable notification manager for Neovim "folke/noice.nvim", event = "VeryLazy", dependencies = { "MunifTanjim/nui.nvim", "rcarriga/nvim-notify", }, opts = { cmdline = { enabled = true, view = "cmdline", }, lsp = { -- 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 }, }, presets = { long_message_to_split = true, -- long messages will be sent to a split lsp_doc_border = true, -- add a border to hover docs and signature help }, ---@module "noice.config.routes" ---@type NoiceRouteConfig[] routes = { -- { -- filter = { -- any = { -- { event = "msg_show", kind = "confirm" }, -- }, -- }, -- view = "confirm", -- }, -- { -- Show @recording messages -- view = "notify", -- filter = { event = "msg_showmode" }, -- }, -- { -- view = "mini", -- filter = { -- event = "msg_show", -- kind = { -- "", -- Unknown (consider a |feature-request|) -- "bufwrite", -- |:write| message -- "undo", -- |:undo| and |:redo| message -- "shell_ret", -- |:!cmd| shell return code -- }, -- }, -- }, -- { -- Different "msg_show" configurations -- view = "notify", -- filter = { -- event = "msg_show", -- kind = { -- -- "confirm", -- Message preceding a prompt (|:confirm|, -- "emsg", -- Error (|errors|, internal error, |:throw -- "echo", -- |:echo| message -- "echomsg", -- |:echomsg| message -- "echoerr", -- |:echoerr| message -- "completion", -- |ins-completion-menu| message -- "list_cmd", -- List output for various commands (|:ls|, -- "lua_error", -- Error in |:lua| code -- "lua_print", -- |print()| from |:lua| code -- "rpc_error", -- Error response from |rpcrequest()| -- "return_prompt", -- |press-enter| prompt after a multiple me -- "quickfix", -- Quickfix navigation message -- "search_cmd", -- Entered search command -- -- "search_count", -- Search count message ("S" flag of 'short -- "shell_err", -- |:!cmd| shell stderr output -- "shell_out", -- |:!cmd| shell stdout output -- "verbose", -- 'verbose' message -- "wildlist", -- 'wildmode' "list" message -- "wmsg", -- Warning ("search hit BOTTOM", |W10|, …) -- }, -- }, -- }, -- { -- view = "mini", -- filter = { -- cmdline = true, -- }, -- }, }, }, }And here is some
:Noice debugoutput:All reactions