Mercurial > dotfiles
changeset 673:e258ef0fb4cd
Add prettier config (#1)
* Update .pre-commit-config.yaml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
author | Zeger Van de Vannet <747627+zegervdv@users.noreply.github.com> |
---|---|
date | Thu, 29 Sep 2022 23:03:11 +0200 |
parents | 627d2040c3ff |
children | 5631c3f65dc1 |
files | .chezmoitemplates/au.lua .pre-commit-config.yaml dot_config/lua-format/conf.yml dot_config/vivid/themes/espresso.yml dot_config/wezterm/wezterm.lua |
diffstat | 5 files changed, 44 insertions(+), 44 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoitemplates/au.lua Thu Sep 29 22:32:44 2022 +0200 +++ b/.chezmoitemplates/au.lua Thu Sep 29 23:03:11 2022 +0200 @@ -27,9 +27,7 @@ __call = autocmd, }) -function S.exec(id) - S.__au[id]() -end +function S.exec(id) S.__au[id]() end function S.set(fn) local id = string.format('%p', fn)
--- a/.pre-commit-config.yaml Thu Sep 29 22:32:44 2022 +0200 +++ b/.pre-commit-config.yaml Thu Sep 29 23:03:11 2022 +0200 @@ -5,8 +5,13 @@ - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - + - repo: https://github.com/JohnnyMorganz/StyLua rev: v0.15.0 hooks: - - id: stylua + - id: stylua + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.7.1 + hooks: + - id: prettier
--- a/dot_config/lua-format/conf.yml Thu Sep 29 22:32:44 2022 +0200 +++ b/dot_config/lua-format/conf.yml Thu Sep 29 23:03:11 2022 +0200 @@ -4,7 +4,7 @@ chop_down_parameter: true break_before_functionref_rp: true chop_down_table: true -table_sep: ',' +table_sep: "," extra_sep_at_table_end: true double_quote_to_single_quote: true spaces_before_call: 1
--- a/dot_config/vivid/themes/espresso.yml Thu Sep 29 22:32:44 2022 +0200 +++ b/dot_config/vivid/themes/espresso.yml Thu Sep 29 23:03:11 2022 +0200 @@ -1,5 +1,4 @@ colors: - # Based on Espresso Tutti Colori theme background_color: "fbfafc" black: "000"
--- a/dot_config/wezterm/wezterm.lua Thu Sep 29 22:32:44 2022 +0200 +++ b/dot_config/wezterm/wezterm.lua Thu Sep 29 23:03:11 2022 +0200 @@ -7,57 +7,57 @@ -- Color scheme colors = { - foreground = "#abb2bf", - background = "#282c34", - cursor_bg = "#eeeeee", - cursor_border = "#eeeeee", + foreground = '#abb2bf', + background = '#282c34', + cursor_bg = '#eeeeee', + cursor_border = '#eeeeee', - selection_bg = "#ffc24b", + selection_bg = '#ffc24b', ansi = { - "#393e48", - "#f43753", - "#c9d05c", - "#ffc24b", - "#b3deef", - "#c678dd", - "#73cef4", - "#eeeeee", + '#393e48', + '#f43753', + '#c9d05c', + '#ffc24b', + '#b3deef', + '#c678dd', + '#73cef4', + '#eeeeee', }, brights = { - "#393e48", - "#f43753", - "#c9d05c", - "#ffc24b", - "#b3deef", - "#c678dd", - "#73cef4", - "#ffffff", + '#393e48', + '#f43753', + '#c9d05c', + '#ffc24b', + '#b3deef', + '#c678dd', + '#73cef4', + '#ffffff', }, tab_bar = { - background = "#3a3f4b", + background = '#3a3f4b', active_tab = { - bg_color = "#61afef", - fg_color = "#282c34", + bg_color = '#61afef', + fg_color = '#282c34', }, inactive_tab = { - bg_color = "#3a3f4b", - fg_color = "#abb2bf", + bg_color = '#3a3f4b', + fg_color = '#abb2bf', }, inactive_tab_hover = { - bg_color = "#3a3f4b", - fg_color = "#abb2bf", + bg_color = '#3a3f4b', + fg_color = '#abb2bf', italic = false, }, new_tab = { - bg_color = "#3a3f4b", - fg_color = "#abb2bf", + bg_color = '#3a3f4b', + fg_color = '#abb2bf', italic = false, }, new_tab_hover = { - bg_color = "#3a3f4b", - fg_color = "#abb2bf", + bg_color = '#3a3f4b', + fg_color = '#abb2bf', italic = false, }, }, @@ -70,14 +70,12 @@ }, -- Font settings font = wezterm.font_with_fallback { - {family="Fira Code Retina", weight = "Medium", italic=false}, - {family="Iosevka Term Italic"}, + { family = 'Fira Code Retina', weight = 'Medium', italic = false }, + { family = 'Iosevka Term Italic' }, }, font_size = 9.0, } -if localcfg_ok then - config.ssh_domains = localcfg.ssh_domains -end +if localcfg_ok then config.ssh_domains = localcfg.ssh_domains end return config