diff options
| author | Chris <[email protected]> | 2021-03-23 01:44:13 -0400 | 
|---|---|---|
| committer | Chris <[email protected]> | 2021-03-23 01:44:13 -0400 | 
| commit | 89fac34ca8b10431d97353fc09a70a8e8884d5f4 (patch) | |
| tree | 75bfb4f549c3bb3c22cc264df8e8b06d5b7f730b /lua | |
| parent | f5184ed9d0c346f3998561d791d59ed7685ba66d (diff) | |
update javascript
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lsp/efm-general-ls.lua | 18 | 
1 files changed, 5 insertions, 13 deletions
| diff --git a/lua/lsp/efm-general-ls.lua b/lua/lsp/efm-general-ls.lua index 4a98665a..3b9243a0 100644 --- a/lua/lsp/efm-general-ls.lua +++ b/lua/lsp/efm-general-ls.lua @@ -31,25 +31,17 @@ local shellcheck = {      lintFormats = {'%f:%l:%c: %trror: %m', '%f:%l:%c: %tarning: %m', '%f:%l:%c: %tote: %m'}  } -local shfmt = { -  formatCommand = 'shfmt -ci -s -bn', -  formatStdin = true -} +local shfmt = {formatCommand = 'shfmt -ci -s -bn', formatStdin = true}  local markdownlint = {      -- TODO default to global lintrc      -- lintcommand = 'markdownlint -s -c ./markdownlintrc',      lintCommand = 'markdownlint -s',      lintStdin = true, -    lintFormats = { '%f:%l %m', '%f:%l:%c %m', '%f: %l: %m' } -} - -local markdownPandocFormat = { -  formatCommand = 'pandoc -f markdown -t gfm -sp --tab-stop=2', -  formatStdin = true +    lintFormats = {'%f:%l %m', '%f:%l:%c %m', '%f: %l: %m'}  } - +local markdownPandocFormat = {formatCommand = 'pandoc -f markdown -t gfm -sp --tab-stop=2', formatStdin = true}  require"lspconfig".efm.setup {      -- init_options = {initializationOptions}, @@ -63,14 +55,14 @@ require"lspconfig".efm.setup {              -- javascriptreact = {prettier, eslint},              -- javascript = {prettier, eslint},              javascriptreact = {prettier}, -            javascript = {prettier}, +            javascript = {prettier_global},              sh = {shellcheck, shfmt},              html = {prettier_global},              css = {prettier_global},              json = {prettier_global},              yaml = {prettier_global},              -- markdown = {markdownPandocFormat, markdownlint}, -            markdown = {markdownPandocFormat}, +            markdown = {markdownPandocFormat}          }      }  } | 
