From 326198038dc1b16b0467ef65d66bd0013f287766 Mon Sep 17 00:00:00 2001 From: Ryan Kes <> Date: Wed, 26 Aug 2020 18:46:41 +0200 Subject: [PATCH] set fixers for golang --- neovim/.config/nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 7bcaa7d..c02ad0c 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -190,7 +190,7 @@ let g:ale_sign_warning = '⚠️' " Fix files - let g:ale_fixers = {'javascript': ['prettier', 'eslint'], 'sh': ['shfmt'], 'json': ['prettier']} + let g:ale_fixers = {'*': ['remove_trailing_lines', 'trim_whitespace'], 'javascript': ['prettier', 'eslint'], 'sh': ['shfmt'], 'json': ['prettier'], 'go': ['gofmt', 'goimports']} " Fix files automatically on save let g:ale_fix_on_save = 1