🔧 Updated nvim with native prettier
This commit is contained in:
parent
049818537e
commit
b1c8c84752
6 changed files with 121 additions and 36 deletions
33
.config/nvim/lua/plugins/prettier.lua
Normal file
33
.config/nvim/lua/plugins/prettier.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
"MunifTanjim/prettier.nvim",
|
||||
config = function()
|
||||
require("prettier").setup({
|
||||
bin = "prettierd", -- or `'prettierd'` (v0.23.3+)
|
||||
filetypes = {
|
||||
"css",
|
||||
"graphql",
|
||||
--"html",
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"json",
|
||||
"less",
|
||||
-- "markdown",
|
||||
"scss",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"yaml",
|
||||
},
|
||||
cli_options = {
|
||||
trailingComma = "all",
|
||||
tabWidth = 4,
|
||||
printWidth = 80,
|
||||
semi = false,
|
||||
jsxSingleQuote = true,
|
||||
singleQuote = true,
|
||||
bracketSpacing = true,
|
||||
bracketSameLine = true,
|
||||
arrowParens = "avoid",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue