fix: remove telescope-undo references since plugin was removed
This commit is contained in:
parent
00b976ca99
commit
5d7b037e99
5 changed files with 31 additions and 44 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
return {
|
return {
|
||||||
'sindrets/diffview.nvim',
|
'sindrets/diffview.nvim',
|
||||||
|
cmd = { 'DiffviewOpen', 'DiffviewClose', 'DiffviewToggleFiles', 'DiffviewFocusFiles' },
|
||||||
|
keys = {
|
||||||
|
{ '<leader>gd', '<cmd>DiffviewOpen<CR>', desc = 'Git: Diffview open' },
|
||||||
|
{ '<leader>gD', '<cmd>DiffviewClose<CR>', desc = 'Git: Diffview close' },
|
||||||
|
},
|
||||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
opts = {},
|
opts = {},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,15 @@
|
||||||
return {
|
return {
|
||||||
'theprimeagen/harpoon',
|
'theprimeagen/harpoon',
|
||||||
branch = 'harpoon2',
|
branch = 'harpoon2',
|
||||||
dependencies = {
|
keys = {
|
||||||
'nvim-lua/plenary.nvim',
|
{ '<leader>a', desc = 'Harpoon: Add file' },
|
||||||
-- 'nvim-telescope/telescope.nvim',
|
{ '<C-e>', desc = 'Harpoon: Toggle menu' },
|
||||||
|
{ '<C-h>', desc = 'Harpoon: Select 1/Prev' },
|
||||||
|
{ '<C-j>', desc = 'Harpoon: Select 2' },
|
||||||
|
{ '<C-k>', desc = 'Harpoon: Select 3' },
|
||||||
|
{ '<C-l>', desc = 'Harpoon: Select 4/Next' },
|
||||||
},
|
},
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
config = function()
|
config = function()
|
||||||
local harpoon = require('harpoon')
|
local harpoon = require('harpoon')
|
||||||
-- local actions = require('telescope.actions')
|
-- local actions = require('telescope.actions')
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
|
event = 'VeryLazy',
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons', 'tpope/vim-fugitive' },
|
dependencies = { 'nvim-tree/nvim-web-devicons', 'tpope/vim-fugitive' },
|
||||||
config = function()
|
config = function()
|
||||||
require('lualine').setup({
|
require('lualine').setup({
|
||||||
|
|
@ -30,7 +31,7 @@ return {
|
||||||
'filetype',
|
'filetype',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extensions = { 'fugitive', 'nvim-tree' },
|
extensions = { 'fugitive', 'nvim-tree', 'fzf' },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,27 +3,17 @@ return {
|
||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
cmd = 'Telescope',
|
cmd = 'Telescope',
|
||||||
version = '*',
|
version = '*',
|
||||||
|
keys = {
|
||||||
|
{ '<leader>ff', '<cmd>Telescope find_files<CR>', desc = 'Find Files' },
|
||||||
|
{ '<leader>fg', '<cmd>Telescope live_grep<CR>', desc = 'Live Grep' },
|
||||||
|
{ '<leader>fb', '<cmd>Telescope buffers<CR>', desc = 'Buffers' },
|
||||||
|
{ '<leader>fh', '<cmd>Telescope help_tags<CR>', desc = 'Help Tags' },
|
||||||
|
{ '<leader>fr', '<cmd>Telescope oldfiles<CR>', desc = 'Recent Files' },
|
||||||
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'debugloop/telescope-undo.nvim', -- Undo history extension
|
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
||||||
{
|
'nvim-tree/nvim-web-devicons',
|
||||||
'nvim-telescope/telescope-fzf-native.nvim',
|
|
||||||
build = 'make',
|
|
||||||
config = function()
|
|
||||||
require('telescope').setup({
|
|
||||||
extensions = {
|
|
||||||
fzf = {},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
require('telescope').load_extension('fzf')
|
|
||||||
end,
|
|
||||||
cond = function()
|
|
||||||
return vim.fn.executable('make') == 1
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
'nvim-tree/nvim-web-devicons', -- Optional: Icons for UI
|
|
||||||
'mbbill/undotree', -- Undotree dependency
|
|
||||||
-- 'b0o/schemastore.nvim', -- YAML schema support
|
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local telescope = require('telescope')
|
local telescope = require('telescope')
|
||||||
|
|
@ -56,17 +46,12 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
undo = {
|
fzf = {},
|
||||||
use_delta = true, -- Use delta for better diff visualization
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Load the undo extension for Telescope
|
-- Load the fzf extension for Telescope
|
||||||
telescope.load_extension('undo')
|
telescope.load_extension('fzf')
|
||||||
|
|
||||||
-- Load yaml schemas for Telescope
|
|
||||||
-- telescope.load_extension('yaml_schema')
|
|
||||||
|
|
||||||
-- Function to find git root directory
|
-- Function to find git root directory
|
||||||
local function find_git_root()
|
local function find_git_root()
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,11 @@
|
||||||
return {
|
return {
|
||||||
'ThePrimeagen/git-worktree.nvim',
|
'ThePrimeagen/git-worktree.nvim',
|
||||||
|
keys = {
|
||||||
|
{ '<leader>ga', "<cmd>lua require('telescope').extensions.git_worktree.git_worktree()<CR>", desc = 'Git Worktrees' },
|
||||||
|
{ '<leader>gn', "<cmd>lua require('telescope').extensions.git_worktree.create_git_worktree()<CR>", desc = 'New Git Worktree' },
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('git-worktree').setup()
|
require('git-worktree').setup()
|
||||||
require('telescope').load_extension('git_worktree')
|
require('telescope').load_extension('git_worktree')
|
||||||
|
|
||||||
vim.keymap.set(
|
|
||||||
'n',
|
|
||||||
'<leader>ga',
|
|
||||||
"<cmd>lua require('telescope').extensions.git_worktree.git_worktree()<CR>",
|
|
||||||
{ desc = 'Git Worktrees' }
|
|
||||||
)
|
|
||||||
vim.keymap.set(
|
|
||||||
'n',
|
|
||||||
'<leader>gn',
|
|
||||||
"<cmd>lua require('telescope').extensions.git_worktree.create_git_worktree()<CR>",
|
|
||||||
{ desc = 'New Git Worktree' }
|
|
||||||
)
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue