...
This commit is contained in:
parent
c76c6ac42b
commit
2248b20e42
2 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,8 @@ end
|
||||||
|
|
||||||
vim.cmd.language("en_US")
|
vim.cmd.language("en_US")
|
||||||
vim.opt.swapfile = false
|
vim.opt.swapfile = false
|
||||||
|
vim.o.ignorecase = true
|
||||||
|
vim.o.smartcase = true
|
||||||
|
|
||||||
vim.o.number = true
|
vim.o.number = true
|
||||||
vim.o.cursorline = true
|
vim.o.cursorline = true
|
||||||
|
|
|
@ -4,7 +4,7 @@ vim.o.timeout = false
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
|
|
||||||
-- Configuration fast editing.
|
-- 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', '\\rconf', ':source $HOME/lib/nvim/init.lua\n', opts)
|
||||||
map('n', '\\econf', ':e $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)
|
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-h>', '<C-w>h', opts)
|
||||||
map('n', '<A-k>', '<C-w>k', opts)
|
map('n', '<A-k>', '<C-w>k', opts)
|
||||||
map('n', '<A-j>', '<C-w>j', 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
|
-- Resizing
|
||||||
map('n', '+', '<C-w>+', opts)
|
map('n', '+', '<C-w>+', opts)
|
||||||
map('n', '-', '<C-w>-', opts)
|
map('n', '-', '<C-w>-', opts)
|
||||||
|
|
Loading…
Reference in a new issue