remove gitsigns

This commit is contained in:
Charlotte 🦝 Delenk 2024-07-02 09:09:40 +02:00
parent dbbbfa9720
commit ddf225bd33
2 changed files with 1 additions and 70 deletions

View file

@ -1,33 +0,0 @@
local gs = require("gitsigns")
local function map(mode, l, r, opts)
opts = opts or {}
vim.keymap.set(mode, l, r, opts)
end
-- Navigation
map("n", "]c", function()
if vim.wo.diff then
return "]c"
end
vim.schedule(function()
gs.next_hunk()
end)
return "<Ignore>"
end, { expr = true, desc = "next hunk" })
map("n", "[c", function()
if vim.wo.diff then
return "[c"
end
vim.schedule(function()
gs.prev_hunk()
end)
return "<Ignore>"
end, { expr = true, desc = "previous hunk" })
-- Actions
map("n", "<leader>hp", gs.preview_hunk)
map("n", "<leader>hb", function()
gs.blame_line { full = true }
end)

View file

@ -8,7 +8,7 @@
vim-fugitive vim-fugitive
vim-flog vim-flog
gitlinker-nvim gitlinker-nvim
gitsigns-nvim #gitsigns-nvim # TODO: currently broken
committia-vim committia-vim
]; ];
vim.keybindings.keybindings."<leader>".g = { vim.keybindings.keybindings."<leader>".g = {
@ -51,40 +51,4 @@
}; };
}; };
plugin.setup.gitlinker = {}; plugin.setup.gitlinker = {};
plugin.setup.gitsigns = {
signs = {
add = {
hl = "GitSignsAdd";
text = "+";
numhl = "GitSignsAddNr";
linehl = "GitSignsAddLn";
};
change = {
hl = "GitSignsChange";
text = "~";
numhl = "GitSignsChangeNr";
linehl = "GitSignsChangeLn";
};
delete = {
hl = "GitSignsDelete";
text = "_";
numhl = "GitSignsDeleteNr";
linehl = "GitSignsDeleteLn";
};
topdelete = {
hl = "GitSignsDelete";
text = "";
numhl = "GitSignsDeleteNr";
linehl = "GitSignsDeleteLn";
};
changedelete = {
hl = "GitSignsChange";
text = "";
numhl = "GitSignsChangeNr";
linehl = "GitSignsChangeLn";
};
};
word_diff = true;
};
extraLuaModules = ["config.gitsigns"];
} }