mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 18:28:35 -05:00
neovim: add Neogit config
This commit is contained in:
parent
26a8058564
commit
a0ca5c25b6
@ -308,6 +308,18 @@ local function highlight_plugins()
|
|||||||
hi('TelescopeMultiSelection', c.fg, c.grey2, 'bold', '')
|
hi('TelescopeMultiSelection', c.fg, c.grey2, 'bold', '')
|
||||||
hi('TelescopeSelectionCaret', c.red, c.grey2, 'bold', '')
|
hi('TelescopeSelectionCaret', c.red, c.grey2, 'bold', '')
|
||||||
hi('TelescopeMatching', c.purple, '', '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
|
end
|
||||||
|
|
||||||
-- Main function
|
-- Main function
|
||||||
|
@ -173,7 +173,7 @@ return require('packer').startup(
|
|||||||
require('octo').setup()
|
require('octo').setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- TODO: config + colors
|
use {
|
||||||
'TimUntersberger/neogit',
|
'TimUntersberger/neogit',
|
||||||
cmd = 'Neogit',
|
cmd = 'Neogit',
|
||||||
wants = {
|
wants = {
|
||||||
@ -182,8 +182,23 @@ return require('packer').startup(
|
|||||||
},
|
},
|
||||||
requires = {
|
requires = {
|
||||||
{'nvim-lua/plenary.nvim', opt = true},
|
{'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 {
|
use {
|
||||||
'kristijanhusak/vim-dadbod-ui',
|
'kristijanhusak/vim-dadbod-ui',
|
||||||
|
Loading…
Reference in New Issue
Block a user