fix format config

This commit is contained in:
RingOfStorms (Josh) 2024-10-03 21:57:20 -05:00
parent 5ce78f6a69
commit 4032e16f3b

View file

@ -61,21 +61,19 @@ 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 = {
lua = { "stylua" }, lua = { "stylua", lsp_format = "fallback" },
nix = { "nixfmt" }, nix = { "nixfmt", lsp_format = "fallback" },
-- vlang = { "v_fmt" }, -- vlang = { "v_fmt" },
typescript = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), typescript = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }),
typescriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), typescriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }),
javascript = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), javascript = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }),
javascriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind" }), javascriptreact = expandFormatters({ { "prettierd", "prettier" }, "rustywind", lsp_format = "fallback" }),
-- TODO revisit these I'd like to use them but they are not in nixpkgs yet -- TODO revisit these I'd like to use them but they are not in nixpkgs yet
-- https://nixos.org/guides/nix-pills/ -- https://nixos.org/guides/nix-pills/
-- markdown = { "mdslw", "mdsf"}, -- markdown = { "mdslw", "mdsf"},
markdown = { "markdownlint-cli2" }, markdown = { "markdownlint-cli2", lsp_format = "fallback" },
-- rust = { "rustfmt" }, -- rust = { "rustfmt" },
["*"] = { lsp_format = "fallback" },
}, },
}, },
keys = { keys = {