feat: add buffer mapping for gitsigns
This commit is contained in:
parent
27560319cc
commit
3fae9d88c5
2 changed files with 137 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
local M = {}
|
||||
|
||||
local load_override = require("core.utils").load_override
|
||||
local utils = require "core.utils"
|
||||
|
||||
M.autopairs = function()
|
||||
local present1, autopairs = pcall(require, "nvim-autopairs")
|
||||
|
@ -145,6 +146,9 @@ M.gitsigns = function()
|
|||
topdelete = { hl = "DiffDelete", text = "‾", numhl = "GitSignsDeleteNr" },
|
||||
changedelete = { hl = "DiffChangeDelete", text = "~", numhl = "GitSignsChangeNr" },
|
||||
},
|
||||
on_attach = function (bufnr)
|
||||
utils.load_mappings("gitsigns", { buffer = bufnr })
|
||||
end
|
||||
}
|
||||
|
||||
options = load_override(options, "lewis6991/gitsigns.nvim")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue