fix(sandwich): add diffview, and lazy install

Signed-off-by: Ryan <ryan@alien.gov>
This commit is contained in:
Ryan 2023-12-12 13:07:24 +08:00
parent 686a1f43b8
commit 43219b32cb
No known key found for this signature in database
GPG Key ID: DB5B3AC49EEFD2A5

View File

@ -14,7 +14,11 @@ vim.opt.rtp:prepend(lazypath)
local opts = {
dev = {
path = "~/.local/src"
}
},
install = {
-- try to load one of these colorschemes when starting an installation during startup
colorscheme = { "gruvbox-material", "habamax" },
},
}
local plugins = {
@ -125,6 +129,7 @@ local plugins = {
-- Code editing
{
"machakann/vim-sandwich",
event = "ModeChanged",
keys = "s"
},
{
@ -262,6 +267,10 @@ local plugins = {
"seandewar/killersheep.nvim",
cmd = "KillKillKill"
},
{
"sindrets/diffview.nvim",
event = "CmdlineEnter"
},
{
"NeogitOrg/neogit",
dependencies = {
@ -282,12 +291,11 @@ local plugins = {
local vscode_plugins = {
{
"machakann/vim-sandwich",
event = "ModeChanged",
event = "BufEnter",
keys = "s"
},
{
"numToStr/Comment.nvim",
event = "BufEnter",
config = function()
require("Comment").setup()
end