add vlang, update files

This commit is contained in:
RingOfStorms (Josh) 2024-05-14 10:01:47 -05:00
parent c8471e745f
commit aa687d7909
6 changed files with 194 additions and 155 deletions

View file

@ -20,10 +20,17 @@ return {
opts = {
-- https://github.com/stevearc/conform.nvim?tab=readme-ov-file#setup
notify_on_error = true,
formatters = {
v_fmt = {
command = "v",
args = { "fmt" },
},
},
-- Note that all these need to be available at runtime, add them to flake.nix#runtimeDependencies
formatters_by_ft = {
lua = { "stylua" },
nix = { "nixfmt" },
vlang = { "v_fmt" },
typescript = { { "prettierd", "prettier" }, "rustywind" },
typescriptreact = { { "prettierd", "prettier" }, "rustywind" },
javascript = { { "prettierd", "prettier" }, "rustywind" },