dotfiles/dot_config/nvim/lua/config/keymaps.lua

13 lines
454 B
Lua
Raw Normal View History

2023-10-13 21:54:13 +02:00
-- 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 = vim.keymap.set
-- replace ex mode map and use it for repeating 'q' macro
map("n", "Q", "@q")
map("v", "Q", "<cmd>norm @q<CR>")
-- Easier in-file navigation with Tab and S-Tab
map("n", "<S-Tab>", "<C-U>")
map("n", "<Tab>", "<C-D>")