diff --git a/home-manager/modules/programs/neovim.nix b/home-manager/modules/programs/neovim.nix index 47bb213..cdfa403 100644 --- a/home-manager/modules/programs/neovim.nix +++ b/home-manager/modules/programs/neovim.nix @@ -20,7 +20,12 @@ let g:airline_theme='onehalflight' ''; } - vim-autoformat + { + plugin = vim-autoformat; + config = '' + au BufWrite * :Autoformat + ''; + } vim-surround ]; extraLuaConfig = ''