summaryrefslogtreecommitdiff
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua2
1 files changed, 1 insertions, 1 deletions
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', '<leader>h', function() vim.cmd 'split' end,
{ desc = 'Open a [H]orizontal split' })
vim.keymap.set('n', '<leader>v', function() vim.cmd 'vsplit' end,
{ desc = 'Open a [V]ertical split' })
-vim.keymap.set('n', 'M', ':make<CR>',
+vim.keymap.set('n', 'M', ':w! | make<CR>',
{ desc = 'Run the configured compiler' })
vim.keymap.set('n', 'V', '<C-v>',
{ desc = 'Enter visual-block mode' })