aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-16 09:33:51 +0800
committerGitHub <noreply@github.com>2024-04-16 09:33:51 +0800
commit9b485e3f429eac5f557d4f2de9002dc1afa4e102 (patch)
treef17721b82511b14487507cda01396c0abb1ae727 /runtime/ftplugin
parentfb7ffac69fe4a32abfb4abfe5cf36213da17904d (diff)
downloadrneovim-9b485e3f429eac5f557d4f2de9002dc1afa4e102.tar.gz
rneovim-9b485e3f429eac5f557d4f2de9002dc1afa4e102.tar.bz2
rneovim-9b485e3f429eac5f557d4f2de9002dc1afa4e102.zip
vim-patch:8a31de6dd275 (#28361)
compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (vim/vim#14460) https://github.com/vim/vim/commit/8a31de6dd275b3dc925fee556ccccd5db8ee2504 Co-authored-by: wzy <32936898+Freed-Wu@users.noreply.github.com>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/yaml.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/ftplugin/yaml.vim b/runtime/ftplugin/yaml.vim
index db7cbd7ddb..8bfc45e4c8 100644
--- a/runtime/ftplugin/yaml.vim
+++ b/runtime/ftplugin/yaml.vim
@@ -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