made tabs better to use in general, telescope buffer picker navigates to open pane
This commit is contained in:
@@ -83,5 +83,22 @@ Keymap("n", "<leader>fg", function()
|
||||
end)
|
||||
|
||||
Keymap("n", "<leader>fb", function()
|
||||
builtin.buffers({ cwd = vim.fn.expand("%:p:h") }) -- buffers don’t need cwd, but harmless
|
||||
builtin.buffers({ show_all_buffers = true })
|
||||
end)
|
||||
|
||||
-- Tab binds
|
||||
Keymap("n", "<C-T>l", function()
|
||||
vim.cmd("tabnext")
|
||||
end)
|
||||
|
||||
Keymap("n", "<C-T>h", function()
|
||||
vim.cmd("tabprevious")
|
||||
end)
|
||||
|
||||
Keymap("n", "<C-T>j", function()
|
||||
vim.cmd("tabnew")
|
||||
end)
|
||||
|
||||
Keymap("n", "<C-T>q", function()
|
||||
vim.cmd("tabclose")
|
||||
end)
|
||||
|
||||
@@ -8,11 +8,23 @@ vim.pack.add({
|
||||
{ src = "https://github.com/2kabhishek/nerdy.nvim", name = "telescope-nerdy" },
|
||||
})
|
||||
|
||||
local actions = require("telescope.actions")
|
||||
require("telescope").setup({
|
||||
defaults = {
|
||||
file_ignore_patterns = { ".git", ".venv", ".node_modules", "node_modules", ".svelte-kit", ".vscode" },
|
||||
},
|
||||
pickers = {
|
||||
buffers = {
|
||||
show_all_buffers = true,
|
||||
mappings = {
|
||||
i = {
|
||||
["<CR>"] = actions.select_drop,
|
||||
},
|
||||
n = {
|
||||
["<CR>"] = actions.select_drop,
|
||||
},
|
||||
},
|
||||
},
|
||||
live_grep = {
|
||||
additional_args = function()
|
||||
return { "--hidden" }
|
||||
|
||||
Reference in New Issue
Block a user