Initial commit
This commit is contained in:
commit
e2cff543d6
29 changed files with 2701 additions and 0 deletions
nvim/plugin
29
nvim/plugin/neogit.lua
Normal file
29
nvim/plugin/neogit.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
if vim.g.did_load_neogit_plugin then
|
||||
return
|
||||
end
|
||||
vim.g.did_load_neogit_plugin = true
|
||||
|
||||
local neogit = require('neogit')
|
||||
|
||||
neogit.setup {
|
||||
disable_builtin_notifications = true,
|
||||
disable_insert_on_commit = 'auto',
|
||||
integrations = {
|
||||
diffview = true,
|
||||
telescope = true,
|
||||
fzf_lua = true,
|
||||
},
|
||||
sections = {
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
recent = {
|
||||
folded = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
vim.keymap.set('n', '<leader>go', neogit.open, { noremap = true, silent = true, desc = 'neo[g]it [o]pen' })
|
||||
vim.keymap.set('n', '<leader>gs', function()
|
||||
neogit.open { kind = 'auto' }
|
||||
end, { noremap = true, silent = true, desc = 'neo[g]it open [s]plit' })
|
||||
vim.keymap.set('n', '<leader>gc', function()
|
||||
neogit.open { 'commit' }
|
||||
end, { noremap = true, silent = true, desc = 'neo[g]it [c]ommit' })
|
Loading…
Add table
Add a link
Reference in a new issue