1
0
mirror of https://github.com/amix/vimrc synced 2025-07-12 14:15:00 +08:00

Added the copilot.vim to sources_non_forked

This commit is contained in:
Amir
2024-01-07 16:15:48 +01:00
parent 4fa0cde32e
commit e6f509e6e1
33 changed files with 203319 additions and 0 deletions

View File

@ -0,0 +1,19 @@
scriptencoding utf-8
if exists("b:current_syntax")
finish
endif
let s:subtype = matchstr(&l:filetype, '\<copilot\.\zs[[:alnum:]_-]\+')
if !empty(s:subtype) && s:subtype !=# 'copilot'
exe 'syn include @copilotLanguageTop syntax/' . s:subtype . '.vim'
unlet! b:current_syntax
endif
syn region copilotHeader start="\%^" end="^─\@="
syn region copilotSolution matchgroup=copilotSeparator start="^─\{9,}$" end="\%(^─\{9,\}$\)\@=\|\%$" keepend contains=@copilotLanguageTop
hi def link copilotHeader PreProc
hi def link copilotSeparator Comment
let b:current_syntax = "copilot"