mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: restructure config files
This commit is contained in:
parent
feea9886f5
commit
0ac177ee21
5 changed files with 25 additions and 43 deletions
21
nvim/lua/config/mappings.lua
Normal file
21
nvim/lua/config/mappings.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
local map = vim.keymap.set
|
||||
local cmd = vim.cmd
|
||||
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- Undo/Redo in insert mode
|
||||
map("i", "<C-z>", cmd.undo)
|
||||
map("i", "<C-y>", cmd.redo)
|
||||
|
||||
-- Ctrl+s saves the current buffer in normal/insert mode.
|
||||
map("n", "<C-s>", cmd.w)
|
||||
map("i", "<C-s>", cmd.w)
|
||||
|
||||
-- Move Text
|
||||
map("n", "<S-a>", ":m+1<CR>")
|
||||
map("n", "<S-d>", ":m-2<CR>")
|
||||
|
||||
-- Indent
|
||||
|
||||
-- Make Shift-Tab undo indent.
|
||||
map("i", "<S-Tab>", "<C-d>")
|
||||
Loading…
Add table
Add a link
Reference in a new issue