From 794c6e74f55eb27657f64f1fda86cb04b9442f15 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Fri, 11 Dec 2020 14:13:03 -0300 Subject: [PATCH] always use tabstop 2 on yaml --- dotfiles/kak/indent.kak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/kak/indent.kak b/dotfiles/kak/indent.kak index ce08269..a814844 100644 --- a/dotfiles/kak/indent.kak +++ b/dotfiles/kak/indent.kak @@ -7,6 +7,10 @@ set global tabstop 4 +hook global BufOpenFile .*\.ya?ml %{ + set buffer tabstop 2 +} + {%@@ if tabs @@%} ################################################################# # Tabs @@ -17,7 +21,6 @@ set global tabstop 4 # yaml is ass and does not allow tabs for indent hook global BufOpenFile .*\.ya?ml %{ - set buffer tabstop 2 execute-keys -draft '%s^\s*' } -group kakrc-replace-spaces-with-tabs