diff options
| author | 2026-04-21 01:24:35 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:35 +0100 | |
| commit | 4ea067d84b13630704392c91b00fc53906337bb6 (patch) | |
| tree | 8033a121aa3e84539325a0020d74af07bbd913ab | |
| parent | e24c62228c49766935f434192db0d1cb4fdde820 (diff) | |
| download | dotfiles-4ea067d84b13630704392c91b00fc53906337bb6.tar.gz dotfiles-4ea067d84b13630704392c91b00fc53906337bb6.tar.bz2 dotfiles-4ea067d84b13630704392c91b00fc53906337bb6.zip | |
chore: add stylua/selene/prettier config files
Add minimal config for the upcoming fmt/lint recipes:
- .stylua.toml: stylua-specific knobs only; indent/line-length/eol
continue to come from .editorconfig (stylua reads it natively).
- selene.toml + nvim.yml: lua51 base plus a 'vim' global so neovim
config files don't get flagged as undefined.
- .prettierrc.json: double quotes, trailing commas, 80-col, preserve
prose wrap (avoid reflowing markdown).
All four ignored by chezmoi so they stay repo-only.
| -rw-r--r-- | .chezmoiignore | 4 | ||||
| -rw-r--r-- | .prettierrc.json | 6 | ||||
| -rw-r--r-- | .stylua.toml | 6 | ||||
| -rw-r--r-- | nvim.yml | 5 | ||||
| -rw-r--r-- | selene.toml | 1 |
5 files changed, 22 insertions, 0 deletions
diff --git a/.chezmoiignore b/.chezmoiignore index f6f6893..7a49601 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -10,3 +10,7 @@ etc/ firefox/ justfile .githooks/ +.stylua.toml +selene.toml +nvim.yml +.prettierrc.json diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..12e08aa --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "singleQuote": false, + "trailingComma": "all", + "printWidth": 80, + "proseWrap": "preserve" +} diff --git a/.stylua.toml b/.stylua.toml new file mode 100644 index 0000000..6397248 --- /dev/null +++ b/.stylua.toml @@ -0,0 +1,6 @@ +column_width = 80 +indent_type = "Spaces" +indent_width = 2 +quote_style = "AutoPreferDouble" +call_parentheses = "Always" +collapse_simple_statement = "Never" diff --git a/nvim.yml b/nvim.yml new file mode 100644 index 0000000..53daa57 --- /dev/null +++ b/nvim.yml @@ -0,0 +1,5 @@ +--- +base: lua51 +globals: + vim: + any: true diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..3df5aa0 --- /dev/null +++ b/selene.toml @@ -0,0 +1 @@ +std = "lua51+nvim" |
