compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -16,6 +16,13 @@ let b:undo_ftplugin = "setl com< cms< et< fo<"
|
||||
setlocal comments=:# commentstring=#\ %s expandtab
|
||||
setlocal formatoptions-=t formatoptions+=croql
|
||||
|
||||
" rime input method engine uses `*.custom.yaml` as its config files
|
||||
if expand('%:r:e') ==# 'custom'
|
||||
compiler rime_deployer
|
||||
setlocal include=__include:\\s*
|
||||
let b:undo_ftplugin ..= " inc<"
|
||||
endif
|
||||
|
||||
if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0
|
||||
let b:undo_ftplugin ..= " sw< sts<"
|
||||
setlocal shiftwidth=2 softtabstop=2
|
||||
|
||||
Reference in New Issue
Block a user