summaryrefslogtreecommitdiffstats
path: root/kakrc
diff options
context:
space:
mode:
Diffstat (limited to 'kakrc')
-rw-r--r--kakrc16
1 files changed, 14 insertions, 2 deletions
diff --git a/kakrc b/kakrc
index 7571a90..6caab19 100644
--- a/kakrc
+++ b/kakrc
@@ -1,10 +1,10 @@
-colorscheme kanagawa
+colorscheme terminal
add-highlighter global/ number-lines -relative -hlcursor -separator " "
add-highlighter global/ show-matching
add-highlighter global/ regex \h+$ 0:Error
-set-option global scrolloff 50,100
+set-option global scrolloff 50,10
set-option global tabstop 4
hook global RegisterModified '"' %{
@@ -17,3 +17,15 @@ map -docstring 'paste wayland clipboard after cursor' global user \
'p' '<a-!>wl-paste -n<ret>'
map -docstring 'paste wayland clipboard before cursor' global user \
'P' '!wl-paste -n<ret>'
+
+
+# Snippets
+define-command -params 2 expand-snippet %{
+ exec -draft x s %arg{1}<ret>d
+ exec -with-hooks %arg{2}
+}
+
+define-command -params 2 expand-snippet-nl %{
+ exec -draft x s ^\s*? %arg{1} <ret> n s %arg{1}<ret>d
+ exec -with-hooks %arg{2}
+}