mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-05 02:24:58 +02:00
use global prettier for now
This commit is contained in:
parent
7c2e2f35ae
commit
42707d1b7e
1 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@ local luaFormat = {
|
|||
-- JavaScript/React/TypeScript
|
||||
local prettier = {formatCommand = "./node_modules/.bin/prettier --stdin-filepath ${INPUT}", formatStdin = true}
|
||||
|
||||
local prettier_yaml = {formatCommand = "prettier --stdin-filepath ${INPUT}", formatStdin = true}
|
||||
local prettier_global = {formatCommand = "prettier --stdin-filepath ${INPUT}", formatStdin = true}
|
||||
|
||||
local eslint = {
|
||||
lintCommand = "./node_modules/.bin/eslint -f unix --stdin --stdin-filename ${INPUT}",
|
||||
|
@ -65,10 +65,10 @@ require"lspconfig".efm.setup {
|
|||
javascriptreact = {prettier},
|
||||
javascript = {prettier},
|
||||
sh = {shellcheck, shfmt},
|
||||
html = {prettier},
|
||||
css = {prettier},
|
||||
json = {prettier},
|
||||
yaml = {prettier_yaml},
|
||||
html = {prettier_global},
|
||||
css = {prettier_global},
|
||||
json = {prettier_global},
|
||||
yaml = {prettier_global},
|
||||
-- markdown = {markdownPandocFormat, markdownlint},
|
||||
markdown = {markdownPandocFormat},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue