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
|
nodePackages.prettier
|
||||||
rustywind
|
rustywind
|
||||||
markdownlint-cli2
|
markdownlint-cli2
|
||||||
|
sqlfluff
|
||||||
# LSPs
|
# LSPs
|
||||||
# python312Packages.tiktoken # needed for copilot chat
|
# python312Packages.tiktoken # needed for copilot chat
|
||||||
nil # nix
|
nil # nix
|
||||||
|
|
|
@ -61,6 +61,7 @@ return {
|
||||||
},
|
},
|
||||||
-- Note that all these need to be available at runtime, add them to flake.nix#runtimeDependencies
|
-- Note that all these need to be available at runtime, add them to flake.nix#runtimeDependencies
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
|
sql = { "sqlfluff", lsp_format = "first" },
|
||||||
lua = { "stylua", lsp_format = "first" },
|
lua = { "stylua", lsp_format = "first" },
|
||||||
nix = { "nixfmt", lsp_format = "first" },
|
nix = { "nixfmt", lsp_format = "first" },
|
||||||
typescript = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "first" }),
|
typescript = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "first" }),
|
||||||
|
|
|
@ -30,18 +30,18 @@ return {
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
"node_modules",
|
"node_modules$",
|
||||||
"package-lock.json",
|
"package-lock.json",
|
||||||
"target",
|
"target$",
|
||||||
".git",
|
".git",
|
||||||
".direnv",
|
".direnv",
|
||||||
".pytest_cache",
|
".pytest_cache",
|
||||||
"__pycache__",
|
"__pycache__",
|
||||||
".venv",
|
".venv",
|
||||||
"venv",
|
"venv$",
|
||||||
".mypy_cache",
|
".mypy_cache",
|
||||||
"dist",
|
"dist$",
|
||||||
"build",
|
"build$",
|
||||||
"poackage-lock.json",
|
"poackage-lock.json",
|
||||||
".aider*",
|
".aider*",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue