From 2248b20e42c59375d02a1c48d7cc6cf6f2e7b466 Mon Sep 17 00:00:00 2001 From: surdeus Date: Tue, 19 Sep 2023 15:22:41 +0300 Subject: [PATCH] ... --- nvim/init.lua | 2 ++ nvim/lua/maps.lua | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nvim/init.lua b/nvim/init.lua index f300f4d..f4e5ffc 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -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 diff --git a/nvim/lua/maps.lua b/nvim/lua/maps.lua index e76d8fe..fe75893 100644 --- a/nvim/lua/maps.lua +++ b/nvim/lua/maps.lua @@ -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', '', 'h', opts) map('n', '', 'k', opts) map('n', '', 'j', opts) + + map('n', 'gl', 'l', opts) + map('n', 'gh', 'h', opts) + map('n', 'gk', 'k', opts) + map('n', 'gj', 'j', opts) -- Resizing map('n', '+', '+', opts) map('n', '-', '-', opts)