1
0
Fork 0

nvim: neogit

This commit is contained in:
Von Random 2023-02-05 00:59:07 +00:00
parent 7d3a85940c
commit 2379f6e232

View file

@ -6,11 +6,16 @@ local function plugins(use)
use 'hoob3rt/lualine.nvim' use 'hoob3rt/lualine.nvim'
use 'hashivim/vim-terraform' use 'hashivim/vim-terraform'
use 'mhinz/vim-signify' use 'mhinz/vim-signify'
use 'tpope/vim-fugitive'
use 'tpope/vim-rsi' use 'tpope/vim-rsi'
use 'tpope/vim-vinegar' use 'tpope/vim-vinegar'
use 'nvim-lua/plenary.nvim' use {
use 'nvim-telescope/telescope.nvim' 'nvim-telescope/telescope.nvim',
requires = 'nvim-lua/plenary.nvim'
}
use {
'TimUntersberger/neogit',
requires = 'nvim-lua/plenary.nvim'
}
use { use {
'w0rp/ale', 'w0rp/ale',
ft = { 'sh', 'zsh', 'lua', 'python' }, ft = { 'sh', 'zsh', 'lua', 'python' },
@ -22,6 +27,7 @@ end
if require('packer_init').init(plugins) then return end if require('packer_init').init(plugins) then return end
--[[ plugins config ]] --[[ plugins config ]]
require('neogit').setup{}
require('lualine').setup{ require('lualine').setup{
options = { options = {
icons_enabled = false, icons_enabled = false,
@ -29,6 +35,9 @@ require('lualine').setup{
} }
} }
--[[ neogit maps ]]
map('n', '<Leader>g', '<cmd>Neogit<CR>')
--[[ telescope maps ]] --[[ telescope maps ]]
map('n', '<Leader>.', '<cmd>Telescope find_files<CR>') map('n', '<Leader>.', '<cmd>Telescope find_files<CR>')
map('n', '<Leader>,', '<cmd>Telescope buffers<CR>') map('n', '<Leader>,', '<cmd>Telescope buffers<CR>')