mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-03-15 15:45:24 +00:00
[neovim] Add keymap for quick quitting
This commit is contained in:
parent
8d7675acf4
commit
5f595edeb1
@ -19,6 +19,20 @@ vim.g.mapleader = " "
|
|||||||
-- Apply q macro
|
-- Apply q macro
|
||||||
keymap("n", "<F9>", "@q", vim.tbl_extend("force", opts, { desc = "Run default macro" }))
|
keymap("n", "<F9>", "@q", vim.tbl_extend("force", opts, { desc = "Run default macro" }))
|
||||||
|
|
||||||
|
-- Quit
|
||||||
|
keymap(
|
||||||
|
"n",
|
||||||
|
"<leader>q",
|
||||||
|
"<cmd>quit!<cr>",
|
||||||
|
vim.tbl_extend("force", opts, { desc = "Quit current buffer, even if there's unsaved work" })
|
||||||
|
)
|
||||||
|
keymap(
|
||||||
|
"n",
|
||||||
|
"<leader>qa",
|
||||||
|
"<cmd>quitall!<cr>",
|
||||||
|
vim.tbl_extend("force", opts, { desc = "Quit all buffers, even those with unsaved work" })
|
||||||
|
)
|
||||||
|
|
||||||
-- Kitty navigation
|
-- Kitty navigation
|
||||||
vim.g.kitty_navigator_no_mappings = 1
|
vim.g.kitty_navigator_no_mappings = 1
|
||||||
keymap("n", "<A-Left>", ":KittyNavigateLeft<cr>", vim.tbl_extend("force", opts, { desc = "Navigate left" }))
|
keymap("n", "<A-Left>", ":KittyNavigateLeft<cr>", vim.tbl_extend("force", opts, { desc = "Navigate left" }))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user