sasaplus1 / ameba-color-palette.dict

dictionary of ameba-color-palette.css for Vim

Home Page:https://github.com/sasaplus1/ameba-color-palette.dict

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ameba-color-palette.dict

Actions Status: test

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.

About

dictionary of ameba-color-palette.css for Vim

https://github.com/sasaplus1/ameba-color-palette.dict

License:MIT License


Languages

Language:Shell 53.5%Language:JavaScript 46.5%