3fa6e3bade
* clean mapping syntax * rm useless util function * add some vim* tsparsers in treesitter config * misc clean * misc clean 2 * add mason bootstrap in main bootstrap file only * misc * rm un-needed dofile call
27 lines
628 B
Lua
27 lines
628 B
Lua
local options = {
|
|
signs = {
|
|
add = { text = "│" },
|
|
change = { text = "│" },
|
|
delete = { text = "" },
|
|
topdelete = { text = "‾" },
|
|
changedelete = { text = "~" },
|
|
untracked = { text = "│" },
|
|
},
|
|
|
|
on_attach = function(bufnr)
|
|
local gs = package.loaded.gitsigns
|
|
|
|
local function opts(desc)
|
|
return { buffer = bufnr, desc = desc }
|
|
end
|
|
|
|
local map = vim.keymap.set
|
|
|
|
map("n", "<leader>rh", gs.reset_hunk, opts "Reset Hunk")
|
|
map("n", "<leader>ph", gs.preview_hunk, opts "Preview Hunk")
|
|
map("n", "<leader>gb", gs.blame_line, opts "Blame Line")
|
|
end,
|
|
}
|
|
|
|
return options
|