This commit is contained in:
Andrey Parhomenko 2023-09-19 15:22:41 +03:00
parent c76c6ac42b
commit 2248b20e42
2 changed files with 8 additions and 1 deletions

View file

@ -8,6 +8,8 @@ end
vim.cmd.language("en_US")
vim.opt.swapfile = false
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.number = true
vim.o.cursorline = true

View file

@ -4,7 +4,7 @@ vim.o.timeout = false
local map = vim.api.nvim_set_keymap
-- Configuration fast editing.
local opts = {silent = true}
local opts = {nowait=true, silent = true}
map('n', '\\rconf', ':source $HOME/lib/nvim/init.lua\n', opts)
map('n', '\\econf', ':e $HOME/lib/nvim/init.lua\n', opts)
map('n', '\\emap', ':e $HOME/lib/nvim/lua/maps.lua\n', opts)
@ -54,6 +54,11 @@ local opts = {silent = true}
map('n', '<A-h>', '<C-w>h', opts)
map('n', '<A-k>', '<C-w>k', opts)
map('n', '<A-j>', '<C-w>j', opts)
map('n', 'gl', '<C-w>l', opts)
map('n', 'gh', '<C-w>h', opts)
map('n', 'gk', '<C-w>k', opts)
map('n', 'gj', '<C-w>j', opts)
-- Resizing
map('n', '+', '<C-w>+', opts)
map('n', '-', '<C-w>-', opts)