2023-02-24 21:11:27 +01:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
'nvim-telescope/telescope.nvim',
|
2024-01-04 20:45:30 +01:00
|
|
|
version = '0.1.*',
|
2023-02-24 21:11:27 +01:00
|
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
2024-09-17 12:44:51 +02:00
|
|
|
config = function()
|
2024-09-17 16:13:48 +02:00
|
|
|
local telescope = require("telescope.builtin")
|
|
|
|
local wk = require("which-key")
|
|
|
|
wk.add({
|
|
|
|
{ "<leader>gh", telescope.git_bcommits, { noremap = true, silent = true, group = "git", desc = "View commits of current buffer" } },
|
|
|
|
{ "<leader>gb", telescope.git_branches, { noremap = true, silent = true, group = "git", desc = "View git branches" } },
|
|
|
|
{ "<leader>gs", telescope.git_status, { noremap = true, silent = true, group = "git", desc = "View git status" } },
|
|
|
|
{ '<Leader>ff', telescope.git_files, { noremap = true, silent = true, desc = "Search files" } },
|
|
|
|
{ '<Leader>fg', telescope.live_grep, { noremap = true, silent = true, desc = "Search in files" } },
|
|
|
|
{ '<Leader>fb', telescope.buffers, { noremap = true, silent = true, desc = "Search in buffers" } },
|
|
|
|
{ '<Leader>fh', telescope.help_tags, { noremap = true, silent = true, desc = "Search in help" } },
|
2024-09-17 16:28:18 +02:00
|
|
|
{ '<Leader>fk', telescope.keymaps, { noremap = true, silent = true, desc = "Search in keymaps" } },
|
2024-09-17 16:13:48 +02:00
|
|
|
{ '<leader>cc', telescope.colorscheme, { desc = "Select colorscheme" } },
|
|
|
|
})
|
2024-09-17 12:44:51 +02:00
|
|
|
end
|
2023-02-24 21:11:27 +01:00
|
|
|
},
|
2024-09-17 12:44:51 +02:00
|
|
|
{
|
|
|
|
'nvim-telescope/telescope-ui-select.nvim',
|
|
|
|
dependencies = { 'nvim-telescope/telescope.nvim' },
|
|
|
|
config = function()
|
|
|
|
require("telescope").setup {
|
2024-09-17 16:13:48 +02:00
|
|
|
defaults = {
|
|
|
|
mappings = {
|
|
|
|
i = {
|
|
|
|
["<C-h>"] = "which_key"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
pickers = {
|
|
|
|
colorscheme = {
|
|
|
|
theme = "dropdown"
|
|
|
|
}
|
|
|
|
},
|
2024-09-17 12:44:51 +02:00
|
|
|
extensions = {
|
|
|
|
["ui-select"] = {
|
2024-09-17 16:13:48 +02:00
|
|
|
require("telescope.themes").get_cursor()
|
2024-09-17 12:44:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
require("telescope").load_extension("ui-select")
|
|
|
|
end
|
|
|
|
}
|
2024-08-13 11:49:16 +02:00
|
|
|
-- Don't really need it. Nicer than the default but that's it
|
|
|
|
-- {
|
|
|
|
-- 'nvim-tree/nvim-tree.lua',
|
|
|
|
-- config = function()
|
|
|
|
-- require('nvim-tree').setup {
|
|
|
|
-- view = {
|
|
|
|
-- width = 30,
|
|
|
|
-- side = 'left',
|
|
|
|
-- },
|
|
|
|
-- }
|
|
|
|
-- end,
|
|
|
|
-- dependencies = { 'nvim-tree/nvim-web-devicons' }
|
|
|
|
-- }
|
2023-02-24 21:11:27 +01:00
|
|
|
}
|