From 4d587b5882c4af02cfbbf4ee1352f79fba08235e 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(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 49d7165..fe7ed8f 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