Added keymap for toggling Zen mode in Neovim
This commit is contained in:
parent
4a5724f5e3
commit
923800d2ef
1 changed files with 3 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ require("lazy").setup({
|
||||||
opts = {
|
opts = {
|
||||||
window = {
|
window = {
|
||||||
backdrop = .9,
|
backdrop = .9,
|
||||||
width = 150,
|
width = 100,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -104,6 +104,8 @@ require('mini.pairs').setup({})
|
||||||
-- ===================================
|
-- ===================================
|
||||||
-- Keymaps are custom commands mapped to a specific key combination.
|
-- Keymaps are custom commands mapped to a specific key combination.
|
||||||
-- The "<leader>" prefix will be replaced with your leader key, which is "space".
|
-- The "<leader>" prefix will be replaced with your leader key, which is "space".
|
||||||
|
-- ZenMode enable
|
||||||
|
vim.keymap.set('n', '<leader>z', ':ZenMode<CR>', { desc = 'Toggle ZenMode' })
|
||||||
-- Split creation keymaps
|
-- Split creation keymaps
|
||||||
vim.keymap.set('n', '<leader>sv', ':vsplit<CR>', { desc = 'Create a vertical split' })
|
vim.keymap.set('n', '<leader>sv', ':vsplit<CR>', { desc = 'Create a vertical split' })
|
||||||
vim.keymap.set('n', '<leader>ss', ':split<CR>', { desc = 'Create a horizontal split' })
|
vim.keymap.set('n', '<leader>ss', ':split<CR>', { desc = 'Create a horizontal split' })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue