✨ feat(nvim): added binding to delete buffer in telescope
This commit is contained in:
parent
3045a32f73
commit
e0d1f7079a
2 changed files with 9 additions and 0 deletions
|
@ -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" })
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue