Skip to content
Discussion options

You must be logged in to vote

@Kogaraashi1 The issue occurs because when trying to delete a buffer with <C-d>, the list of buffers isn't updated as expected. This happens due to how mini.pick is configured. According to the documentation for mini.pick, you can register a custom function to handle buffers, as explained in registry.

Additionally, as mentioned in buffers, it's possible to map keys like <C-d> to perform specific actions on buffers, such as deleting them.

Thus, the code should be modified as follows to achieve the expected behavior:

Code (spoiler)
local pick = require("mini.pick")
pick.registry.buffers = function(local_opts, opts)
    local_opts = local_opts or {}

    -- Delete the current buffer
    local 

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@echasnovski
Comment options

@krovuxdev
Comment options

@krovuxdev
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants