From cc7d8f1f21db59a096e3246c78f6fd6c74634318 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 11 Jun 2024 22:20:48 +0200 Subject: nvim: Save the buffer before building --- .config/nvim/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/nvim') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 0d7763e..ec708f0 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -68,7 +68,7 @@ vim.keymap.set('n', 'h', function() vim.cmd 'split' end, { desc = 'Open a [H]orizontal split' }) vim.keymap.set('n', 'v', function() vim.cmd 'vsplit' end, { desc = 'Open a [V]ertical split' }) -vim.keymap.set('n', 'M', ':make', +vim.keymap.set('n', 'M', ':w! | make', { desc = 'Run the configured compiler' }) vim.keymap.set('n', 'V', '', { desc = 'Enter visual-block mode' }) -- cgit v1.2.3