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
'lukas-reineke/indent-blankline.nvim',
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help indent_blankline.txt`
opts = {
char = '',
show_trailing_blankline_indent = false,
},
main = "ibl",
opts = {},
},
-- "gc" to comment visual regions/lines

View File

@ -89,4 +89,12 @@ return {
version = "*",
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("project")
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")
vim.api.nvim_set_keymap(