neovim(telescope): fuck, im too lazy to type this shit

This commit is contained in:
2022-09-15 21:47:13 +03:00
parent 3e91c0ac1d
commit 30f35efc3f

View File

@@ -10,9 +10,6 @@ telescope.setup({
i = { i = {
["<C-j>"] = actions.move_selection_worse, ["<C-j>"] = actions.move_selection_worse,
["<C-k>"] = actions.move_selection_better, ["<C-k>"] = actions.move_selection_better,
["<C-d>"] = function(prompt_bufnr)
actions.delete_buffer(prompt_bufnr)
end,
["<C-p>"] = layout_actions.toggle_preview, ["<C-p>"] = layout_actions.toggle_preview,
}, },
n = { n = {
@@ -30,6 +27,20 @@ telescope.setup({
lsp_definitions = { lsp_definitions = {
initial_mode = "normal", initial_mode = "normal",
}, },
buffers = {
mappings = {
i = {
["<C-d>"] = function(prompt_bufnr)
actions.delete_buffer(prompt_bufnr)
end,
},
n = {
["<C-d>"] = function(prompt_bufnr)
actions.delete_buffer(prompt_bufnr)
end,
},
},
},
}, },
extensions = { extensions = {
fzf = { fzf = {