" skkeleton
imap (skkeleton-toggle)
cmap (skkeleton-toggle)
call skkeleton#config({
\'eggLikeNewline':v:true
\})
call skkeleton#config({
\'globalJisyo': '~/.local/share/skk/SKK-JISYO+emoji-utf8.L'
\})
call skkeleton#config({
\'globalJisyoEncoding': 'utf-8'
\})
call skkeleton#config({
\'useSkkServer':v:true
\})
call skkeleton#config({
\'skkServerResEnc' : 'euc-jp'
\})
call skkeleton#config({
\'skkServerReqEnc' : 'euc-jp'
\})
" Customize global settings
" Use around source.
" https://github.com/Shougo/ddc-around
call ddc#custom#patch_global('sources', ['around', 'skkeleton'])
" Use matcher_head and sorter_rank.
" https://github.com/Shougo/ddc-matcher_head
" https://github.com/Shougo/ddc-sorter_rank
call ddc#custom#patch_global('sourceOptions', {
\ 'around': {'mark': 'A'},
\ 'skkeleton': {
\ 'mark': 'skkeleton',
\ 'matchers': ['skkeleton'],
\ 'sorters': []
\ },
\ '_': {
\ 'matchers': ['matcher_head'],
\ 'sorters': ['sorter_rank']},
\ })
" Change source options
call ddc#custom#patch_global('sourceOptions', {
\ 'around': {'mark': 'A'},
\ })
call ddc#custom#patch_global('sourceParams', {
\ 'around': {'maxSize': 500},
\ })
" Customize settings on a filetype
call ddc#custom#patch_filetype(['c', 'cpp'], 'sources', ['around', 'clangd'])
call ddc#custom#patch_filetype(['c', 'cpp'], 'sourceOptions', {
\ 'clangd': {'mark': 'C'},
\ })
call ddc#custom#patch_filetype('markdown', 'sourceParams', {
\ 'around': {'maxSize': 100},
\ })