From 4ea067d84b13630704392c91b00fc53906337bb6 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:35 +0100 Subject: 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. --- .chezmoiignore | 4 ++++ .prettierrc.json | 6 ++++++ .stylua.toml | 6 ++++++ nvim.yml | 5 +++++ selene.toml | 1 + 5 files changed, 22 insertions(+) create mode 100644 .prettierrc.json create mode 100644 .stylua.toml create mode 100644 nvim.yml create mode 100644 selene.toml 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" -- cgit v1.2.3-70-g09d2