add sql formatter and fix ignore patterns ignoring too much

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-07-09 23:56:08 -05:00
parent 86a29f880e
commit 498ade4bfc
3 changed files with 7 additions and 5 deletions

View file

@ -257,6 +257,7 @@
nodePackages.prettier
rustywind
markdownlint-cli2
sqlfluff
# LSPs
# python312Packages.tiktoken # needed for copilot chat
nil # nix

View file

@ -61,6 +61,7 @@ return {
},
-- Note that all these need to be available at runtime, add them to flake.nix#runtimeDependencies
formatters_by_ft = {
sql = { "sqlfluff", lsp_format = "first" },
lua = { "stylua", lsp_format = "first" },
nix = { "nixfmt", lsp_format = "first" },
typescript = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "first" }),

View file

@ -30,18 +30,18 @@ return {
},
defaults = {
file_ignore_patterns = {
"node_modules",
"node_modules$",
"package-lock.json",
"target",
"target$",
".git",
".direnv",
".pytest_cache",
"__pycache__",
".venv",
"venv",
"venv$",
".mypy_cache",
"dist",
"build",
"dist$",
"build$",
"poackage-lock.json",
".aider*",
},