Migrate vim to neovim (min v0.11)
Install newest vim-releases via appimage from github-page!
This commit is contained in:
25
.config/nvim/lua/plugins/gitsigns.lua
Normal file
25
.config/nvim/lua/plugins/gitsigns.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
local function my_attach_change(bufnr)
|
||||
local gs = require "gitsigns"
|
||||
vim.keymap.set("n", "<Leader>tb", gs.toggle_current_line_blame, { buffer = bufnr })
|
||||
end
|
||||
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
lazy = false,
|
||||
opts = {
|
||||
on_attach = my_attach_change,
|
||||
signs = {
|
||||
add = { text = "+" },
|
||||
change = { text = "~" },
|
||||
delete = { text = "-" },
|
||||
topdelete = { text = "-" },
|
||||
},
|
||||
signs_staged = {
|
||||
add = { text = "+" },
|
||||
change = { text = "~" },
|
||||
delete = { text = "-" },
|
||||
topdelete = { text = "-" },
|
||||
},
|
||||
word_diff = false
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user