indent: user default value for css

This commit is contained in:
lelgenio 2021-04-04 20:09:10 -03:00
parent cf8c2e185f
commit 629b6e1707
3 changed files with 8 additions and 1 deletions

View File

@ -375,6 +375,10 @@ dotfiles: # Just a bunch of paths and action mappings
src: theme src: theme
dst: ~/ dst: ~/
prettierrc:
src: prettierrc.toml
dst: ~/.prettierrc.toml
clang-format: clang-format:
src: clang-format src: clang-format
dst: ~/.clang-format dst: ~/.clang-format

View File

@ -8,7 +8,7 @@
set global tabstop {{@@ indent_width @@}} set global tabstop {{@@ indent_width @@}}
{%@@ set small_indent = [2, indent_width / 2] | max @@%} {%@@ 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 buffer indentwidth {{@@ small_indent @@}}
set global tabstop {{@@ small_indent @@}} set global tabstop {{@@ small_indent @@}}
} }

3
dotfiles/prettierrc.toml Normal file
View File

@ -0,0 +1,3 @@
# {{@@ header() @@}}
tabWidth = {{@@ indent_width @@}}