summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc16
1 files changed, 0 insertions, 16 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 496a87f..febffac 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -126,21 +126,5 @@ function! s:lsp_keymaps() abort
endif
endfunction
augroup END
-function! s:prettier_format() abort
- if !executable('prettier')
- return
- endif
- let l:view = winsaveview()
- silent %!prettier --stdin-filepath % --html-whitespace-sensitivity=strict
- if v:shell_error
- silent undo
- echohl ErrorMsg | echom 'formatting failed'
- endif
- call winrestview(l:view)
-endfunction
-augroup prettierformat
- au!
- autocmd BufWritePre *.html,*.css call s:prettier_format()
-augroup END