ameba-color-palette.dict
dictionary of ameba-color-palette.css for Vim
Setup
minimal settings:
set iskeyword+=- dictionary+=/path/to/repos/dict/ameba-color-palette.dict
or load dictionary when apply css
filetype:
" NOTE: add group is better
autocmd FileType css setlocal iskeyword+=- dictionary+=/path/to/repos/dict/ameba-color-palette.dict
dein.vim
dein.vim example:
function! s:hook_post_source_ameba_color_palette_dict() abort
function! s:setup_ameba_color_palette_dict() abort
let dict_dir = dein#get('ameba-color-palette.dict').path
let dict_file = resolve(dict_dir . '/dict/ameba-color-palette.dict')
execute 'setlocal' 'iskeyword+=-' 'dictionary+=' . dict_file
endfunction
autocmd FileType css call s:setup_ameba_color_palette_dict()
endfunction
call dein#add('sasaplus1/ameba-color-palette.dict', {
\ 'hook_post_source' : function('s:hook_post_source_ameba_color_palette_dict'),
\ 'rev' : 'release',
\ })
add some options to dein#add
if you want to lazy loading:
+ \ 'lazy' : v:true,
+ \ 'on_ft' : ['css'],
License
The MIT license.