mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 05:11:45 +00:00
configure highlighting during plugin config
This commit is contained in:
parent
69c8790f6e
commit
9a4a5f31ae
@ -5,17 +5,17 @@ vim.g.conflict_marker_highlight_group = ''
|
|||||||
vim.g.conflict_marker_begin = '^<<<<<<< .*$'
|
vim.g.conflict_marker_begin = '^<<<<<<< .*$'
|
||||||
vim.g.conflict_marker_end = '^>>>>>>> .*$'
|
vim.g.conflict_marker_end = '^>>>>>>> .*$'
|
||||||
|
|
||||||
-- Highlight groups
|
|
||||||
vim.cmd 'highlight ConflictMarkerBegin guibg=#2f7366'
|
|
||||||
vim.cmd 'highlight ConflictMarkerOurs guibg=#2e5049'
|
|
||||||
vim.cmd 'highlight ConflictMarkerTheirs guibg=#344f69'
|
|
||||||
vim.cmd 'highlight ConflictMarkerEnd guibg=#2f628e'
|
|
||||||
vim.cmd 'highlight ConflictMarkerCommonAncestorsHunk guibg=#754a81'
|
|
||||||
|
|
||||||
-- Git conflict marker management plugin
|
-- Git conflict marker management plugin
|
||||||
return {
|
return {
|
||||||
'rhysd/conflict-marker.vim',
|
'rhysd/conflict-marker.vim',
|
||||||
config = function()
|
config = function()
|
||||||
|
-- Highlight groups
|
||||||
|
vim.cmd 'highlight ConflictMarkerBegin guibg=#2f7366'
|
||||||
|
vim.cmd 'highlight ConflictMarkerOurs guibg=#2e5049'
|
||||||
|
vim.cmd 'highlight ConflictMarkerTheirs guibg=#344f69'
|
||||||
|
vim.cmd 'highlight ConflictMarkerEnd guibg=#2f628e'
|
||||||
|
vim.cmd 'highlight ConflictMarkerCommonAncestorsHunk guibg=#754a81'
|
||||||
|
|
||||||
-- Read all lines in buffer, check if there is any conflict marker
|
-- Read all lines in buffer, check if there is any conflict marker
|
||||||
function git_conflict_detection()
|
function git_conflict_detection()
|
||||||
local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false)
|
local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user