From a1761d34a859fad41855db2069e448c948450d11 Mon Sep 17 00:00:00 2001 From: serxoz Date: Fri, 30 Dec 2022 11:37:17 +0100 Subject: [PATCH] git related plugins --- lua/serxoz/packer.lua | 18 ++++++++++++++++-- plugin/packer_compiled.lua | 20 +++++++++++++++----- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/lua/serxoz/packer.lua b/lua/serxoz/packer.lua index e6aaefb..a89dce0 100644 --- a/lua/serxoz/packer.lua +++ b/lua/serxoz/packer.lua @@ -1,8 +1,10 @@ return require("packer").startup(function(use) use("wbthomason/packer.nvim") - -- Simple plugins can be specified as strings - use("TimUntersberger/neogit") + -- Git related plugins + use 'tpope/vim-fugitive' + use 'tpope/vim-rhubarb' + use 'lewis6991/gitsigns.nvim' -- TJ created lodash of neovim use("nvim-lua/plenary.nvim") @@ -100,4 +102,16 @@ return require("packer").startup(function(use) end } + -- Gitsigns + -- See `:help gitsigns.txt` + require('gitsigns').setup { + signs = { + add = { text = '+' }, + change = { text = '~' }, + delete = { text = '_' }, + topdelete = { text = '‾' }, + changedelete = { text = '~' }, + }, + } + end) diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index 4450415..96e2770 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -110,6 +110,11 @@ _G.packer_plugins = { path = "/home/sergio/.local/share/nvim/site/pack/packer/start/cmp_luasnip", url = "https://github.com/saadparwaiz1/cmp_luasnip" }, + ["gitsigns.nvim"] = { + loaded = true, + path = "/home/sergio/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", + url = "https://github.com/lewis6991/gitsigns.nvim" + }, gruvbox = { loaded = true, path = "/home/sergio/.local/share/nvim/site/pack/packer/start/gruvbox", @@ -140,11 +145,6 @@ _G.packer_plugins = { path = "/home/sergio/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, - neogit = { - loaded = true, - path = "/home/sergio/.local/share/nvim/site/pack/packer/start/neogit", - url = "https://github.com/TimUntersberger/neogit" - }, ["night-owl.vim"] = { loaded = true, path = "/home/sergio/.local/share/nvim/site/pack/packer/start/night-owl.vim", @@ -247,6 +247,16 @@ _G.packer_plugins = { loaded = true, path = "/home/sergio/.local/share/nvim/site/pack/packer/start/undotree", url = "https://github.com/mbbill/undotree" + }, + ["vim-fugitive"] = { + loaded = true, + path = "/home/sergio/.local/share/nvim/site/pack/packer/start/vim-fugitive", + url = "https://github.com/tpope/vim-fugitive" + }, + ["vim-rhubarb"] = { + loaded = true, + path = "/home/sergio/.local/share/nvim/site/pack/packer/start/vim-rhubarb", + url = "https://github.com/tpope/vim-rhubarb" } }