diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-02-06 18:38:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-02-06 18:38:54 +0900 |
| commit | 60127c882fb824bb183a9123d28a51c4597dee3e (patch) | |
| tree | 146599beccb32addcc1c4c35f86f3f6056a1933d | |
| parent | d284aa6c10100bef240296a1da20cbcc24780201 (diff) | |
| download | dotfiles-60127c882fb824bb183a9123d28a51c4597dee3e.tar.gz dotfiles-60127c882fb824bb183a9123d28a51c4597dee3e.tar.zst dotfiles-60127c882fb824bb183a9123d28a51c4597dee3e.zip | |
neovim: add Japanese parentheses to sandwich
| -rw-r--r-- | .config/nvim/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index a6c6122..260f4a3 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1743,7 +1743,24 @@ F['operator#sandwich#set']('add', 'all', 'highlight', 2) F['operator#sandwich#set']('delete', 'all', 'highlight', 0) F['operator#sandwich#set']('replace', 'all', 'highlight', 2) +do + local rs = F['sandwich#get_recipes']() + rs[#rs+1] = { + buns = {'「', '」'}, + input = {'j[', 'j]'}, + } + rs[#rs+1] = { + buns = {'『', '』'}, + input = {'j{', 'j}'}, + } + rs[#rs+1] = { + buns = {'【', '】'}, + input = {'j(', 'j)'}, + } + + G['sandwich#recipes'] = rs +end |
