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*", },