backup
This commit is contained in:
parent
1c5f169fbf
commit
66b4e1cf52
4 changed files with 16 additions and 17 deletions
1
.rgignore
Normal file
1
.rgignore
Normal file
|
@ -0,0 +1 @@
|
|||
tmp/**
|
|
@ -1,9 +0,0 @@
|
|||
vim.cmd [[
|
||||
let g:gitgutter_signs = 0
|
||||
nmap <Leader>gd <Plug>(GitGutterPreviewHunk)
|
||||
" nmap <Leader>gf <Plug>(GitGutterFold) " why doesn't work?
|
||||
nmap <Leader>gf :GitGutterFold<cr>
|
||||
nmap <Leader>gu <Plug>(GitGutterUndoHunk)
|
||||
nmap ]h <Plug>(GitGutterNextHunk)
|
||||
nmap [h <Plug>(GitGutterPrevHunk)
|
||||
]]
|
|
@ -10,4 +10,19 @@ map("i", "<sc-L>", "<Del>")
|
|||
|
||||
map("n", "<leader>l", ":tab term lazygit<CR>:set nonu nornu<CR>A")
|
||||
|
||||
|
||||
|
||||
vim.api.nvim_create_autocmd({"User"}, {
|
||||
pattern = "LazyLoad",
|
||||
callback = function(data)
|
||||
if data.data == "gitsigns.nvim" then
|
||||
local gs = package.loaded.gitsigns
|
||||
|
||||
map("n", "[h", gs.prev_hunk)
|
||||
map("n", "]h", gs.next_hunk)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||
|
|
|
@ -15,14 +15,6 @@ return {
|
|||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"airblade/vim-gitgutter",
|
||||
lazy = false,
|
||||
config = function()
|
||||
require "configs.gitgutter"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
-- event = 'BufWritePre', -- uncomment for format on save
|
||||
|
|
Loading…
Reference in a new issue