diff --git a/lua/plugins/formatter.lua b/lua/plugins/formatter.lua index f69344a..0f2acc4 100644 --- a/lua/plugins/formatter.lua +++ b/lua/plugins/formatter.lua @@ -61,21 +61,19 @@ return { }, -- Note that all these need to be available at runtime, add them to flake.nix#runtimeDependencies formatters_by_ft = { - lua = { "stylua" }, - nix = { "nixfmt" }, + lua = { "stylua", lsp_format = "fallback" }, + nix = { "nixfmt", lsp_format = "fallback" }, -- vlang = { "v_fmt" }, - typescript = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), - typescriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), - javascript = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), - javascriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), + typescript = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }), + typescriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }), + javascript = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }), + javascriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }), -- TODO revisit these I'd like to use them but they are not in nixpkgs yet -- https://nixos.org/guides/nix-pills/ -- markdown = { "mdslw", "mdsf"}, - markdown = { "markdownlint-cli2" }, + markdown = { "markdownlint-cli2", lsp_format = "fallback" }, -- rust = { "rustfmt" }, - - ["*"] = { lsp_format = "fallback" }, }, }, keys = {