Move Autoformat to hotkey
This commit is contained in:
parent
6ea05c7f44
commit
e9131f8e6e
1 changed files with 1 additions and 5 deletions
|
@ -75,7 +75,6 @@ let g:formatters_cabal = ['my_cabal']
|
||||||
let g:formatdef_my_nix = '"nixfmt"'
|
let g:formatdef_my_nix = '"nixfmt"'
|
||||||
let g:formatters_nix = ['my_nix']
|
let g:formatters_nix = ['my_nix']
|
||||||
|
|
||||||
au BufWrite * :Autoformat
|
|
||||||
|
|
||||||
let g:autoformat_autoindent = 0
|
let g:autoformat_autoindent = 0
|
||||||
let g:autoformat_retab = 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
|
" Remap for do codeAction of selected region, ex: `<leader>aap` for current paragraph
|
||||||
xmap <leader>a <Plug>(coc-codeaction-selected)
|
xmap <leader>a <Plug>(coc-codeaction-selected)
|
||||||
nmap <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)
|
nmap <space>a <Plug>(coc-codeaction)
|
||||||
" Fix autofix problem of current line
|
nmap <space>f :Autoformat<CR>
|
||||||
nmap <space>f <Plug>(coc-fix-current)
|
|
||||||
|
|
||||||
" Create mappings for function text object, requires document symbols feature of languageserver.
|
" Create mappings for function text object, requires document symbols feature of languageserver.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue