aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-06-26 22:20:24 +0900
committernsfisis <nsfisis@gmail.com>2025-06-26 22:20:24 +0900
commit5d14c4bfda03f3f215da4ac7d85e0c7aed23457e (patch)
treea2449532a9611d1a1596677fab3750b4824e3e1c /.config
parent3784b3539b8dd46c2b70dc85ff7de27393b47516 (diff)
downloaddotfiles-5d14c4bfda03f3f215da4ac7d85e0c7aed23457e.tar.gz
dotfiles-5d14c4bfda03f3f215da4ac7d85e0c7aed23457e.tar.zst
dotfiles-5d14c4bfda03f3f215da4ac7d85e0c7aed23457e.zip
nvim/sandwich: add Redmine collapse macro
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/vimrc/plugins.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/nvim/lua/vimrc/plugins.lua b/.config/nvim/lua/vimrc/plugins.lua
index d8ae9c4..c591636 100644
--- a/.config/nvim/lua/vimrc/plugins.lua
+++ b/.config/nvim/lua/vimrc/plugins.lua
@@ -90,6 +90,7 @@ return {
do
local rs = vim.fn['sandwich#get_recipes']()
+ -- Japanese parentheses
rs[#rs+1] = {
buns = {'「', '」'},
input = {'j[', 'j]'},
@@ -103,6 +104,14 @@ return {
input = {'j(', 'j)'},
}
+ -- Redmine macro
+ rs[#rs+1] = {
+ buns = {'{{collapse()\n', '\n}}'},
+ input = {'C'},
+ motionwise = {'line'},
+ autoindent = 0,
+ }
+
vim.g['sandwich#recipes'] = rs
end
end,