From 6ad129f34136eae3d2800edd1613e7fdbf0cfba3 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 27 Jan 2024 10:41:39 +0100 Subject: [PATCH] updated neovim state --- states/neovim/templates/init.vim.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/states/neovim/templates/init.vim.j2 b/states/neovim/templates/init.vim.j2 index 1b2b1a2..f963f50 100644 --- a/states/neovim/templates/init.vim.j2 +++ b/states/neovim/templates/init.vim.j2 @@ -28,6 +28,11 @@ function! RemoveComments() "silent sort endfunction +function! Reformat() + :normal gg=G +endfunction + +command! Reformat call Reformat() command! RemoveComments call RemoveComments() nnoremap :!%:p