added telescope history

main
Mathias Rothenhaeusler 2023-10-03 17:28:21 +02:00
parent 2e74a93297
commit df75c9f658
3 changed files with 18 additions and 4 deletions

View File

@ -173,15 +173,14 @@ require('lazy').setup({
}, },
}, },
{ {
-- Add indentation guides even on blank lines -- Add indentation guides even on blank lines
'lukas-reineke/indent-blankline.nvim', 'lukas-reineke/indent-blankline.nvim',
-- Enable `lukas-reineke/indent-blankline.nvim` -- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help indent_blankline.txt` -- See `:help indent_blankline.txt`
opts = { main = "ibl",
char = '', opts = {},
show_trailing_blankline_indent = false,
},
}, },
-- "gc" to comment visual regions/lines -- "gc" to comment visual regions/lines

View File

@ -89,4 +89,12 @@ return {
version = "*", version = "*",
dependencies = 'nvim-tree/nvim-web-devicons' dependencies = 'nvim-tree/nvim-web-devicons'
}, },
-- local history
{
'dawsers/telescope-file-history.nvim',
dependencies = {
'nvim-telescope/telescope.nvim'
}
}
} }

View File

@ -27,6 +27,13 @@ telescope.setup({
telescope.load_extension("fzf") telescope.load_extension("fzf")
telescope.load_extension("project") telescope.load_extension("project")
telescope.load_extension('harpoon') telescope.load_extension('harpoon')
require('file_history').setup {
-- This is the location where it will create your file history repository
backup_dir = "~/.file-history-git",
-- command line to execute git
git_cmd = "git"
}
telescope.load_extension('file_history')
-- telescope.load_extension("dap") -- telescope.load_extension("dap")
vim.api.nvim_set_keymap( vim.api.nvim_set_keymap(