From bff5b4f2bd2074b1d153b9db53fd47ca4633b8f7 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Tue, 26 Aug 2025 15:15:28 +0200 Subject: Cleanup colorschemes, add html snippets --- kakrc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'kakrc') 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' 'wl-paste -n' map -docstring 'paste wayland clipboard before cursor' global user \ 'P' '!wl-paste -n' + + +# Snippets +define-command -params 2 expand-snippet %{ + exec -draft x s %arg{1}d + exec -with-hooks %arg{2} +} + +define-command -params 2 expand-snippet-nl %{ + exec -draft x s ^\s*? %arg{1} n s %arg{1}d + exec -with-hooks %arg{2} +} -- cgit v1.2.3