Added highlighter options
This commit is contained in:
parent
dca9a3d990
commit
e8edebccbe
2 changed files with 19 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue