diff options
author | Von Random <von@mechanus.net> | 2023-02-05 00:59:07 +0000 |
---|---|---|
committer | Von Random <von@mechanus.net> | 2023-02-05 00:59:07 +0000 |
commit | 2379f6e2324261f047c55e1d9b309412a5cecc3d (patch) | |
tree | 32853c5232315b1b67927cd555d9b1ae41e9f709 | |
parent | 7d3a85940cfe7e05ca5bcb131e280cc5bb6e94c2 (diff) |
nvim: neogit
-rw-r--r-- | cli/.config/nvim/lua/plugins.lua | 15 |
1 files 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', '<Leader>g', '<cmd>Neogit<CR>') + --[[ telescope maps ]] map('n', '<Leader>.', '<cmd>Telescope find_files<CR>') map('n', '<Leader>,', '<cmd>Telescope buffers<CR>') |