diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-11 22:20:48 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-11 22:20:48 +0200 |
commit | 4d587b5882c4af02cfbbf4ee1352f79fba08235e (patch) | |
tree | ce55d835e06dab9849632092596f6c4795ca73e6 /.config/nvim | |
parent | 1f04bef2db25bb386c70fa3b63bb73cedb07f9a9 (diff) |
nvim: Save the buffer before building
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/init.lua | 2 |
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' }) |