mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-22 15:43:42 +00:00
feat(nvim): more formatters
This commit is contained in:
parent
38b4cdc78e
commit
55d9e056dc
1 changed files with 14 additions and 0 deletions
|
@ -188,6 +188,20 @@ require("formatter").setup({
|
||||||
graphql = {
|
graphql = {
|
||||||
require("formatter.filetypes.graphql").prettier,
|
require("formatter.filetypes.graphql").prettier,
|
||||||
},
|
},
|
||||||
|
html = {
|
||||||
|
require("formatter.filetypes.html").prettier,
|
||||||
|
},
|
||||||
|
template = {
|
||||||
|
function()
|
||||||
|
local prettierForGoTemplate = require("formatter.defaults.prettier")()
|
||||||
|
table.insert(prettierForGoTemplate.args, "--plugin")
|
||||||
|
table.insert(prettierForGoTemplate.args, "prettier-plugin-go-template")
|
||||||
|
return prettierForGoTemplate
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
css = {
|
||||||
|
require("formatter.filetypes.css").prettier,
|
||||||
|
},
|
||||||
rust = {
|
rust = {
|
||||||
require("formatter.filetypes.rust").rustfmt,
|
require("formatter.filetypes.rust").rustfmt,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue