add gitsigns in blace of gitgutter and git-blame

This commit is contained in:
2024-11-19 10:10:00 +02:00
parent c49b758e86
commit 6871470b6c
5 changed files with 31 additions and 46 deletions

View File

@@ -1,22 +0,0 @@
return {
'f-person/git-blame.nvim',
config = function()
local gitblame = require('gitblame')
gitblame.setup({
enabled = true,
date_format = '%r'
})
vim.keymap.set("n", "<leader>gbt", function()
gitblame.toggle()
end)
local CrentistGitBlame = vim.api.nvim_create_augroup("CrentistGitBlame", {})
vim.api.nvim_create_autocmd({ "FileType" }, {
group = CrentistGitBlame,
pattern = "netrw",
callback = function()
gitblame.disable()
end,
})
end
}

View File

@@ -1,3 +0,0 @@
return {
"airblade/vim-gitgutter",
}

View File

@@ -0,0 +1,11 @@
return {
"lewis6991/gitsigns.nvim",
opts = {
current_line_blame = true,
attach_to_untracked = true,
current_line_blame_opts = {
delay = 500,
},
}
}

View File

@@ -15,7 +15,7 @@ return {
table.insert(file_paths, item.value)
end
require("telescope.pickers").new({}, {
require('telescope.pickers').new({}, {
prompt_title = "Harpoon",
finder = require("telescope.finders").new_table({
results = file_paths,