From 2379f6e2324261f047c55e1d9b309412a5cecc3d Mon Sep 17 00:00:00 2001 From: Von Random Date: Sun, 5 Feb 2023 00:59:07 +0000 Subject: [PATCH] nvim: neogit --- cli/.config/nvim/lua/plugins.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cli/.config/nvim/lua/plugins.lua b/cli/.config/nvim/lua/plugins.lua index ea78838..ff438fa 100644 --- a/cli/.config/nvim/lua/plugins.lua +++ b/cli/.config/nvim/lua/plugins.lua @@ -6,11 +6,16 @@ local function plugins(use) use 'hoob3rt/lualine.nvim' use 'hashivim/vim-terraform' use 'mhinz/vim-signify' - use 'tpope/vim-fugitive' use 'tpope/vim-rsi' use 'tpope/vim-vinegar' - use 'nvim-lua/plenary.nvim' - use 'nvim-telescope/telescope.nvim' + use { + 'nvim-telescope/telescope.nvim', + requires = 'nvim-lua/plenary.nvim' + } + use { + 'TimUntersberger/neogit', + requires = 'nvim-lua/plenary.nvim' + } use { 'w0rp/ale', ft = { 'sh', 'zsh', 'lua', 'python' }, @@ -22,6 +27,7 @@ end if require('packer_init').init(plugins) then return end --[[ plugins config ]] +require('neogit').setup{} require('lualine').setup{ options = { icons_enabled = false, @@ -29,6 +35,9 @@ require('lualine').setup{ } } +--[[ neogit maps ]] +map('n', 'g', 'Neogit') + --[[ telescope maps ]] map('n', '.', 'Telescope find_files') map('n', ',', 'Telescope buffers')