From 498ade4bfce37d17c2089a86ee6187ec80240bde Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Wed, 9 Jul 2025 23:56:08 -0500 Subject: [PATCH] add sql formatter and fix ignore patterns ignoring too much --- flake.nix | 1 + lua/plugins/conform_formatter.lua | 1 + lua/plugins/telescope.lua | 10 +++++----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index fdbb6b5..a68c610 100644 --- a/flake.nix +++ b/flake.nix @@ -257,6 +257,7 @@ nodePackages.prettier rustywind markdownlint-cli2 + sqlfluff # LSPs # python312Packages.tiktoken # needed for copilot chat nil # nix diff --git a/lua/plugins/conform_formatter.lua b/lua/plugins/conform_formatter.lua index ec44bb0..4d5ca7c 100644 --- a/lua/plugins/conform_formatter.lua +++ b/lua/plugins/conform_formatter.lua @@ -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" }), diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index d775bbb..11d397e 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -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*", },