We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f57bae commit 71d3b55Copy full SHA for 71d3b55
plugin/mappings.vim
@@ -59,14 +59,3 @@ execute 'nnoremap <unique> <silent>' s:prefix . '=' ':FormatLines<CR>'
59
" Format the visually selected region using the formatter associated with the
60
" current buffer.
61
execute 'vnoremap <unique> <silent>' s:prefix ':FormatLines<CR>'
62
-
63
-function! s:SetFormatExpr() abort
64
- if codefmt#AvailableInCurrrentBuffer()
65
- setlocal formatexpr=codefmt#FormatExpr()
66
- endif
67
-endfunction
68
69
-augroup codefmt_formatexpr
70
- autocmd!
71
- autocmd BufEnter * call <SID>SetFormatExpr()
72
-augroup END
0 commit comments