diff options
| author | Chris <[email protected]> | 2021-03-22 22:10:02 -0400 | 
|---|---|---|
| committer | Chris <[email protected]> | 2021-03-22 22:10:02 -0400 | 
| commit | 42707d1b7eaafedd4b6dbc364b826ba947045029 (patch) | |
| tree | 3724173c49225227abfbe32c5bd971bc21b917a1 /lua/lsp | |
| parent | 7c2e2f35ae9e7cc824f5b2756d799aa1a78fc1bd (diff) | |
use global prettier for now
Diffstat (limited to 'lua/lsp')
| -rw-r--r-- | lua/lsp/efm-general-ls.lua | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/lua/lsp/efm-general-ls.lua b/lua/lsp/efm-general-ls.lua index dc0cf972..4a98665a 100644 --- a/lua/lsp/efm-general-ls.lua +++ b/lua/lsp/efm-general-ls.lua @@ -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},          } | 
