From 629b6e1707d5a170772696c5f259cb0c08f3ed58 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Sun, 4 Apr 2021 20:09:10 -0300 Subject: [PATCH] indent: user default value for css --- config.yaml | 4 ++++ dotfiles/kak/indent.kak | 2 +- dotfiles/prettierrc.toml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 dotfiles/prettierrc.toml diff --git a/config.yaml b/config.yaml index 9ee65eb..b890bce 100644 --- a/config.yaml +++ b/config.yaml @@ -375,6 +375,10 @@ dotfiles: # Just a bunch of paths and action mappings src: theme dst: ~/ + prettierrc: + src: prettierrc.toml + dst: ~/.prettierrc.toml + clang-format: src: clang-format dst: ~/.clang-format diff --git a/dotfiles/kak/indent.kak b/dotfiles/kak/indent.kak index f2312e6..2afdd8c 100644 --- a/dotfiles/kak/indent.kak +++ b/dotfiles/kak/indent.kak @@ -8,7 +8,7 @@ set global tabstop {{@@ indent_width @@}} {%@@ set small_indent = [2, indent_width / 2] | max @@%} -hook global BufCreate .*\.(ya?ml|c(pp)?|css|less) %{ +hook global BufCreate .*\.(ya?ml|c(pp)?) %{ set buffer indentwidth {{@@ small_indent @@}} set global tabstop {{@@ small_indent @@}} } diff --git a/dotfiles/prettierrc.toml b/dotfiles/prettierrc.toml new file mode 100644 index 0000000..0093cd9 --- /dev/null +++ b/dotfiles/prettierrc.toml @@ -0,0 +1,3 @@ +# {{@@ header() @@}} + +tabWidth = {{@@ indent_width @@}}