mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-22 07:33:33 +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 = {
|
||||
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 = {
|
||||
require("formatter.filetypes.rust").rustfmt,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue