mhartington/formatter.nvim

how about supporting `:Format senario`?

Closed this issue · 5 comments

require("formatter").setup({
  filetype = {
    python = {
      project_one = {isort, black},
      project_two = {isort2, black2},
      project_three = {isort, flake8},

    },
  },
})

when working on different projects, one may want to use different config to format; with above changes, he can call :Format project_one when in project_one.

thanks for your time (for reading it)!

+1 to this request. I'd be happy to try to make a PR if this would be something you'd be willing to merge @mhartington ?

+1 here as well - id review the PR but @mhartington is the owner so id wait until he gives this a green light

Mmm, Im not sure about this one. How would we define the projects? It seems like it's overstepping the goal of this plugin.

i think the time is long enough for this idea, i am closing this as it has not got too much interest.

and thanks for building such a great plugin!

after some practices, i realized that the formaters are functions, users literally can do whatever they want in those functions.
there is no need to add such feature, now i'm glad the owner had rejected this proposal.