fix format config
This commit is contained in:
parent
5ce78f6a69
commit
4032e16f3b
1 changed files with 7 additions and 9 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue