feat: add buffer mapping for gitsigns
This commit is contained in:
committed by
Sidhanth Rathod
parent
27560319cc
commit
3fae9d88c5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user