🔧 Configure prettier differently
This commit is contained in:
parent
f55abf94c7
commit
5288674c2c
2 changed files with 0 additions and 53 deletions
|
|
@ -1,52 +0,0 @@
|
||||||
local prettier = require("prettier")
|
|
||||||
|
|
||||||
prettier.setup({
|
|
||||||
bin = 'prettier', -- or `'prettierd'` (v0.23.3+)
|
|
||||||
filetypes = {
|
|
||||||
"css",
|
|
||||||
"graphql",
|
|
||||||
"html",
|
|
||||||
"javascript",
|
|
||||||
"javascriptreact",
|
|
||||||
"json",
|
|
||||||
"less",
|
|
||||||
"markdown",
|
|
||||||
"scss",
|
|
||||||
"typescript",
|
|
||||||
"typescriptreact",
|
|
||||||
"yaml",
|
|
||||||
},
|
|
||||||
["null-ls"] = {
|
|
||||||
condition = function()
|
|
||||||
return prettier.config_exists({
|
|
||||||
-- if `false`, skips checking `package.json` for `"prettier"` key
|
|
||||||
check_package_json = true,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
runtime_condition = function(params)
|
|
||||||
-- return false to skip running prettier
|
|
||||||
return true
|
|
||||||
end,
|
|
||||||
timeout = 5000,
|
|
||||||
},
|
|
||||||
cli_options = {
|
|
||||||
arrow_parens = "always",
|
|
||||||
bracket_spacing = true,
|
|
||||||
bracket_same_line = false,
|
|
||||||
embedded_language_formatting = "auto",
|
|
||||||
end_of_line = "lf",
|
|
||||||
html_whitespace_sensitivity = "css",
|
|
||||||
-- jsx_bracket_same_line = false,
|
|
||||||
jsx_single_quote = false,
|
|
||||||
print_width = 80,
|
|
||||||
prose_wrap = "preserve",
|
|
||||||
quote_props = "as-needed",
|
|
||||||
semi = true,
|
|
||||||
single_attribute_per_line = false,
|
|
||||||
single_quote = false,
|
|
||||||
tab_width = 2,
|
|
||||||
trailing_comma = "es5",
|
|
||||||
use_tabs = false,
|
|
||||||
vue_indent_script_and_style = false,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
@ -74,7 +74,6 @@ return require("packer").startup(function(use)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
use("jose-elias-alvarez/null-ls.nvim")
|
use("jose-elias-alvarez/null-ls.nvim")
|
||||||
use("MunifTanjim/prettier.nvim")
|
|
||||||
use({ "rcarriga/nvim-dap-ui", requires = { "mfussenegger/nvim-dap" } })
|
use({ "rcarriga/nvim-dap-ui", requires = { "mfussenegger/nvim-dap" } })
|
||||||
use({
|
use({
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue