neovim: add Neogit config

This commit is contained in:
FollieHiyuki 2021-07-13 20:22:07 +03:00
parent c418326c86
commit f234580945
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
2 changed files with 30 additions and 3 deletions

View File

@ -308,6 +308,18 @@ local function highlight_plugins()
hi('TelescopeMultiSelection', c.fg, c.grey2, 'bold', '')
hi('TelescopeSelectionCaret', c.red, c.grey2, 'bold', '')
hi('TelescopeMatching', c.purple, '', 'bold', '')
-- Neogit
hi('NeogitBranch', c.purple, '', '', '')
hi('NeogitRemote', c.blue, '', '', '')
hi('NeogitHunkHeader', c.cyan, c.grey2, 'bold', '')
hi('NeogitHunkHeaderHighlight', c.yellow, c.grey2, 'bold', '')
hi('NeogitDiffContextHighlight', c.fg, c.grey2, '', '')
hi('NeogitDiffDeleteHighlight', c.red, c.grey2, '', '')
hi('NeogitDiffAddHighlight', c.green, c.grey2, '', '')
hi('NeogitNotificationInfo', c.green, '', '', '')
hi('NeogitNotificationWarning', c.yellow, '', '', '')
hi('NeogitNotificationError', c.red, '', '', '')
end
-- Main function

View File

@ -173,7 +173,7 @@ return require('packer').startup(
require('octo').setup()
end
}
use { -- TODO: config + colors
use {
'TimUntersberger/neogit',
cmd = 'Neogit',
wants = {
@ -182,8 +182,23 @@ return require('packer').startup(
},
requires = {
{'nvim-lua/plenary.nvim', opt = true},
{'sindrets/diffview.nvim', opt = true}
}
{
'sindrets/diffview.nvim',
config = function()
require('diffview').setup {
diff_binaries = true
}
end,
opt = true
}
},
config = function()
require('neogit').setup {
integrations = {
diffview = true
}
}
end
}
use {
'kristijanhusak/vim-dadbod-ui',