Simplify gitsigns setup by a tiny amount
This commit is contained in:
parent
18abc39e9c
commit
ad3eaf120a
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue