add keymap for quick write

This commit is contained in:
Thomas Ruoff
2024-03-15 23:24:15 +01:00
parent f05bcb7029
commit a341203cfc

View File

@@ -168,6 +168,7 @@ vim.o.foldlevelstart = 99
-- Set highlight on search, but clear on pressing <Esc> in normal mode
vim.opt.hlsearch = true
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n', '<leader>w', '<cmd>write<CR>', { desc = '[w]rite' })
-- Diagnostic keymaps
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' })