add sql formatter and fix ignore patterns ignoring too much
This commit is contained in:
parent
86a29f880e
commit
498ade4bfc
3 changed files with 7 additions and 5 deletions
|
@ -257,6 +257,7 @@
|
|||
nodePackages.prettier
|
||||
rustywind
|
||||
markdownlint-cli2
|
||||
sqlfluff
|
||||
# LSPs
|
||||
# python312Packages.tiktoken # needed for copilot chat
|
||||
nil # nix
|
||||
|
|
|
@ -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" }),
|
||||
|
|
|
@ -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*",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue