From e9131f8e6ebf6139a1ea9aaf1b2d38b1264c4a33 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Sat, 16 May 2020 11:34:24 +0200 Subject: [PATCH] Move Autoformat to hotkey --- home/neovim/vimrc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/home/neovim/vimrc b/home/neovim/vimrc index a6dfb4f8..ecd63155 100644 --- a/home/neovim/vimrc +++ b/home/neovim/vimrc @@ -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: `aap` for current paragraph xmap a (coc-codeaction-selected) nmap a (coc-codeaction-selected) - -" Remap for do codeAction of current line nmap a (coc-codeaction) -" Fix autofix problem of current line -nmap f (coc-fix-current) +nmap f :Autoformat " Create mappings for function text object, requires document symbols feature of languageserver.