feat(nvim): added binding to delete buffer in telescope

This commit is contained in:
Sergio Laín 2023-12-16 18:16:10 +01:00
parent 3045a32f73
commit e0d1f7079a
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 9 additions and 0 deletions

View file

@ -41,6 +41,14 @@ map("n", "n", "nzzzv")
map("n", "N", "Nzzzv")
map("n", "<leader>uS", function()
if vim.opt.laststatus:get() == 0 then
vim.opt.laststatus = 3
else
vim.opt.laststatus = 0
end
end, { desc = "Toggle Statusline" })
map("n", "<leader>cif", "<cmd>LazyFormatInfo<cr>", { desc = "Formatting" })
map("n", "<leader>cir", "<cmd>LazyRoot<cr>", { desc = "Root" })
map("n", "<leader>cie", "<cmd>LazyExtras<cr>", { desc = "Extras" })

View file

@ -59,6 +59,7 @@ return {
mappings = {
i = {
["<C-k>"] = actions.move_selection_previous,
["<C-r>"] = actions.delete_buffer,
["<C-j>"] = actions.move_selection_next,
["<esc>"] = actions.close,
["<C-p>"] = require("telescope.actions.layout").toggle_preview,