Skip to content

Commit

Permalink
vim: Replace Neoformat with coc-prettier
Browse files Browse the repository at this point in the history
At present, Neoformat is unable to resolve the local Prettier version. Also would surface occasional errors on save (sbdchd/neoformat#134).
  • Loading branch information
huntie committed Apr 28, 2020
1 parent c78732e commit 20be8c2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions vim/.config/coc/extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"coc-css": ">=1.2.3",
"coc-html": ">=1.2.4",
"coc-json": ">=1.2.5",
"coc-prettier": ">=1.1.12",
"coc-snippets": ">=2.1.26",
"coc-tsserver": ">=1.5.1"
}
Expand Down
10 changes: 10 additions & 0 deletions vim/.config/nvim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"coc.preferences.formatOnSaveFiletypes": [
"graphql",
"javascript",
"javascriptreact",
"json",
"typescript",
"typescriptreact"
]
}
6 changes: 0 additions & 6 deletions vim/.vim/ftplugin/typescriptreact.vim

This file was deleted.

1 change: 0 additions & 1 deletion vim/.vim/plugins.vim
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Plug 'morhetz/gruvbox'
Plug 'ntpeters/vim-better-whitespace'
Plug 'pangloss/vim-javascript'
Plug 'reedes/vim-colors-pencil'
Plug 'sbdchd/neoformat'
Plug 'scrooloose/nerdtree'
Plug 'SidOfc/mkdx'
Plug 'statico/vim-javascript-sql'
Expand Down

0 comments on commit 20be8c2

Please sign in to comment.