haydenrou/dotfiles

Enable formatters

haydenrou opened this issue · 2 comments

Not sure if this should be done via an LSP or alternative at the moment.

If you update the default LSPs update the README, I think it's missing templ at the moment

https://github.com/stevearc/conform.nvim

  formatters_by_ft = {
    css = { "stylelint" },
    scss = { "stylelint" },
    lua = { "stylua" },
    templ = { "rustywind", "templ" },
    javascript = { "eslint", { "prettierd", "prettier" } },
    typescript = { {"eslint", "tslint"}, { "prettierd", "prettier" } },
    go = {
      {
        command = "goimports-reviser",
        args = {"-file-path", "%filepath"},
      },
      "golines",
      { "gofumpt", "gofmt" },
    },
  },