1
Fork 0

Simplify gitsigns setup by a tiny amount

This commit is contained in:
Matei Adriel 2023-11-10 17:32:47 +01:00
parent 18abc39e9c
commit ad3eaf120a
No known key found for this signature in database

View file

@ -4,8 +4,7 @@ local M = {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
event = "BufReadPost", event = "BufReadPost",
cond = env.firenvim.not_active() and env.vscode.not_active(), cond = env.firenvim.not_active() and env.vscode.not_active(),
config = function() opts = {
require("gitsigns").setup({
on_attach = function(bufnr) on_attach = function(bufnr)
local wk = require("which-key") local wk = require("which-key")
local gs = package.loaded.gitsigns local gs = package.loaded.gitsigns
@ -93,8 +92,7 @@ local M = {
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", "Inside hunk") map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", "Inside hunk")
-- }}} -- }}}
end, end,
}) },
end,
} }
return M return M