Added highlighter options

This commit is contained in:
baabelfish 2016-02-12 17:43:20 +02:00
commit e8edebccbe
2 changed files with 19 additions and 3 deletions

View file

@ -6,7 +6,7 @@ if exists("s:loaded")
endif
let s:loaded = 1
let s:highlights = {
let s:all_highlights = {
\ 'skProc': "Function",
\ 'skTemplate': "PreProc",
\ 'skType': "Type",
@ -35,6 +35,8 @@ let s:highlights = {
\ 'skVar': "Constant",
\ }
let s:highlights = {}
let s:NimHighlighter = {
\ }
@ -113,6 +115,14 @@ function highlighter#New()
endfunction
function! highlighter#select_highlights(kinds)
let s:highlights = {}
for kind in a:kinds
let s:highlights[kind] = s:all_highlights[kind]
endfor
endfunction
function! highlighter#guard()
if g:nvim_nim_highlighter_enable
if line("$") + 0 < 500