A
_G.telescope_buffers = function()
local actions = require('telescope.actions')
local action_set = require('telescope.actions.set')
local action_state = require('telescope.actions.state')
require('telescope.builtin').buffers({
attach_mappings = function(prompt_bufnr, lmap)
action_set.select:replace(function(prompt_bufnr, type)
local entry = action_state.get_selected_entry()
actions.close(prompt_bufnr)
vim.cmd("bdelete " .. tostring(entry['bufnr']))
end)
return true
end,
})
end
но тут просто вместо открытия будет закрытие =))
если у кого есть решение поделитесь пожалуйста