1
0
Fork 0

Move Autoformat to hotkey

This commit is contained in:
Malte Brandy 2020-05-16 11:34:24 +02:00
parent 6ea05c7f44
commit e9131f8e6e
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -75,7 +75,6 @@ let g:formatters_cabal = ['my_cabal']
let g:formatdef_my_nix = '"nixfmt"'
let g:formatters_nix = ['my_nix']
au BufWrite * :Autoformat
let g:autoformat_autoindent = 0
let g:autoformat_retab = 0
@ -165,11 +164,8 @@ augroup end
" Remap for do codeAction of selected region, ex: `<leader>aap` for current paragraph
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)
" Remap for do codeAction of current line
nmap <space>a <Plug>(coc-codeaction)
" Fix autofix problem of current line
nmap <space>f <Plug>(coc-fix-current)
nmap <space>f :Autoformat<CR>
" Create mappings for function text object, requires document symbols feature of languageserver.