Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Add cairo-format command
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jan 5, 2021
1 parent b5e87a5 commit d3acb56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions plugin/cairo.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function! CairoFormat()
silent !clear
silent execute "!cairo-format -i " . bufname('%') | execute ':redraw!'
endfunction

command! CairoFormat :call CairoFormat()
6 changes: 3 additions & 3 deletions syntax/cairo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ syn keyword clKeywordControlEnd end
syn match clFuncName /\zs[a-zA-Z_][a-zA-Z0-9_]*\ze\s*(/ contained
syn keyword clKeywordFunc func nextgroup=clFuncName skipwhite

hi clCommentLine ctermfg=7
hi link clCommentLine Comment
hi clKeywordControlElse ctermfg=5
hi clKeywordOpcode ctermfg=6
hi clKeywordMeta ctermfg=6
hi clKeywordItalic ctermfg=6
hi link clKeywordMeta Keyword
hi link clKeywordItalic Keyword
hi clEntityFuncName ctermfg=3
hi clKeywordControlIf ctermfg=5
hi clEntityCondition ctermfg=3
Expand Down

0 comments on commit d3acb56

Please sign in to comment.