You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
local M = { |
|
|
"LukasPietzschmann/telescope-tabs", |
|
|
event = "VeryLazy", |
|
|
} |
|
|
|
|
|
function M.config() |
|
|
|
|
|
local wk = require "which-key" |
|
|
wk.register { |
|
|
["<leader>aa"] = { "<cmd>lua require('telescope').extensions['telescope-tabs'].list_tabs(require('telescope.themes').get_dropdown{previewer = false, initial_mode='normal', prompt_title='Tabs'})<cr>", "Find Tabs" }, |
|
|
} |
|
|
|
|
|
require("telescope-tabs").setup { |
|
|
show_preview = false, |
|
|
close_tab_shortcut_i = "<C-d>", -- if you're in insert mode |
|
|
close_tab_shortcut_n = "dd", -- if you're in normal mode |
|
|
entry_formatter = function(tab_id, buffer_ids, file_names, file_paths, is_current) |
|
|
local entry_string = table.concat(file_names, ", ") |
|
|
return string.format("%d: %s%s", tab_id, entry_string, is_current and " " or "") |
|
|
end, |
|
|
} |
|
|
end |
|
|
|
|
|
return M
|
|
|
|