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()
|
|
|
|
local opts = { noremap = true, silent = true }
|
|
|
|
vim.keymap.set("n", "<leader>gh", require("telescope.builtin").git_bcommits, opts)
|
|
|
|
vim.keymap.set("n", "<leader>gb", require("telescope.builtin").git_branches, opts)
|
|
|
|
vim.keymap.set("n", "<leader>gs", require("telescope.builtin").git_status, opts)
|
2024-09-17 14:49:38 +02:00
|
|
|
vim.keymap.set('n', '<Leader>ff', '<cmd>lua require(\'telescope.builtin\').git_files()<CR>', opts)
|
|
|
|
vim.keymap.set('n', '<Leader>fg', '<cmd>lua require(\'telescope.builtin\').live_grep()<CR>', opts)
|
|
|
|
vim.keymap.set('n', '<Leader>fb', '<cmd>lua require(\'telescope.builtin\').buffers()<CR>', opts)
|
|
|
|
vim.keymap.set('n', '<Leader>fh', '<cmd>lua require(\'telescope.builtin\').help_tags()<CR>', opts)
|
|
|
|
vim.keymap.set('n', '<leader>cc', '<cmd>Telescope colorscheme<CR>')
|
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 {
|
|
|
|
extensions = {
|
|
|
|
["ui-select"] = {
|
|
|
|
require("telescope.themes").get_dropdown()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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
|
|
|
}
|