fix(nvim): oil git nvim refacotr
This commit is contained in:
parent
15edf30ef3
commit
dce4e28c82
3 changed files with 55 additions and 46 deletions
|
|
@ -333,6 +333,52 @@ return {
|
|||
end,
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
{
|
||||
'malewicz1337/oil-git.nvim',
|
||||
dir = '~/dev/oil-git.nvim',
|
||||
opts = {
|
||||
symbol_position = 'signcolumn',
|
||||
can_use_signcolumn = function()
|
||||
return true
|
||||
end,
|
||||
show_file_highlights = false,
|
||||
show_directory_highlights = false,
|
||||
symbols = {
|
||||
file = {
|
||||
added = '│',
|
||||
modified = '│',
|
||||
renamed = '│',
|
||||
deleted = '_',
|
||||
copied = '│',
|
||||
conflict = '│',
|
||||
untracked = '│',
|
||||
ignored = ' ',
|
||||
},
|
||||
directory = {
|
||||
added = '│',
|
||||
modified = '│',
|
||||
renamed = '│',
|
||||
deleted = '_',
|
||||
copied = '│',
|
||||
conflict = '│',
|
||||
untracked = '│',
|
||||
ignored = ' ',
|
||||
},
|
||||
},
|
||||
highlights = {
|
||||
OilGitAdded = { link = 'GitSignsAdd' },
|
||||
OilGitModified = { link = 'GitSignsChange' },
|
||||
OilGitRenamed = { link = 'GitSignsChange' },
|
||||
OilGitDeleted = { link = 'GitSignsDelete' },
|
||||
OilGitCopied = { link = 'GitSignsChange' },
|
||||
OilGitConflict = { link = 'GitSignsDelete' },
|
||||
OilGitUntracked = { link = 'GitSignsAdd' },
|
||||
OilGitIgnored = { link = 'Comment' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
'echasnovski/mini.misc',
|
||||
|
|
@ -374,7 +420,13 @@ return {
|
|||
},
|
||||
{
|
||||
'wallpants/github-preview.nvim',
|
||||
keys = { '<leader>m', '<cmd>GithubPreviewToggle<cr>' },
|
||||
config = true,
|
||||
dir = '~/dev/github-preview.nvim',
|
||||
keys = { { '<leader>m', '<cmd>silent GithubPreviewToggle<cr>' } },
|
||||
opts = {
|
||||
single_file = true,
|
||||
cursor_line = {
|
||||
disable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue