Added LazyGit

This commit is contained in:
Kasper Sternberg 2024-03-06 09:17:03 +01:00
parent ea89c3f4b9
commit 1f870585b7
4 changed files with 20 additions and 2 deletions

View File

@ -817,7 +817,6 @@ require('lazy').setup {
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
{ import = 'custom.plugins' },
vim.keymap.set('n', '<C-b>', ':Neotree toggle last<CR>', { noremap = true, silent = true, desc = 'Toggle neotree' }),
}
-- The line beneath this is called `modeline`. See `:help modeline`

View File

@ -12,4 +12,5 @@ return {
config = function()
require('neo-tree').setup {}
end,
vim.keymap.set('n', '<C-b>', ':Neotree toggle last<CR>', { noremap = true, silent = true, desc = 'Toggle neotree' }),
}

View File

@ -0,0 +1,17 @@
return {
{
'kdheepak/lazygit.nvim',
cmd = {
'LazyGit',
'LazyGitConfig',
'LazyGitCurrentFile',
'LazyGitFilter',
'LazyGitFilterCurrentFile',
},
-- optional for floating window border decoration
dependencies = {
'nvim-lua/plenary.nvim',
},
},
vim.keymap.set('n', '<leader>lg', ':LazyGit<CR>', { desc = '[L]azy [G]it' }),
}

View File

@ -15,5 +15,6 @@ return {
},
}
end,
vim.keymap.set('n', 'ts', ':Neotest run suite=true<CR> :Neotest summary open<CR>', {}),
vim.keymap.set('n', 'tt', ':Neotest summary toggle<CR>', { desc = '[T]oggle [T]est explorer' }),
vim.keymap.set('n', 'ts', ':Neotest run suite=true<CR>', { desc = '[T]est [S]uite' }),
}