nvim/lua/config/keymaps.lua
2024-10-15 18:58:04 +08:00

10 lines
420 B
Lua

-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
local map = LazyVim.safe_keymap_set
map("n", "q", "<cmd>bd<cr>", { desc = "Quit one" })
map("n", "Q", "<cmd>qa<cr>", { desc = "Quit All" })
map("n", "<F2>", ":Neotree toggle<cr>", { desc = "toggle neotree" })