nvim: after/ftplugin: javascript: Add keymapping to invoke prettier

Different prettier versions format differently. Add a keymapping to
invoke the project local prettier. Using Neoformat prettier uses the
global install prettier which can give different results.
This commit is contained in:
Sanchayan Maity 2021-05-13 13:57:13 +05:30
parent cb1358df1b
commit 1ba2fee97d
1 changed files with 1 additions and 0 deletions

View File

@ -0,0 +1 @@
nmap <buffer> <silent> gf :!npx prettier --write %:p<CR>:e<CR>