diff --git a/config/private_dot_config/private_lvim/config.lua b/config/private_dot_config/private_lvim/config.lua index e24eb1d..e8e6c55 100644 --- a/config/private_dot_config/private_lvim/config.lua +++ b/config/private_dot_config/private_lvim/config.lua @@ -1,4 +1,8 @@ -- general +vim.opt.spell = true +vim.keymap.set("v", "J", ":m '>+1gv=gv") +vim.keymap.set("v", "K", ":m '<-2gv=gv") + lvim.log.level = "warn" lvim.format_on_save = true lvim.colorscheme = "onedarker" @@ -13,6 +17,11 @@ lvim.keys.normal_mode["o"] = "o" lvim.keys.normal_mode["O"] = "O" lvim.keys.normal_mode[""] = "bnext" lvim.keys.normal_mode[""] = "bprev" +lvim.keys.normal_mode["k"] = "gk" +lvim.keys.normal_mode["j"] = "gj" +lvim.keys.visual_mode["p"] = "pgvy" +lvim.keys.normal_mode["Y"] = "y$" +lvim.keys.visual_mode["y"] = "ygv" -- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode. -- we use protected-mode (pcall) just in case the plugin wasn't loaded yet. @@ -38,6 +47,9 @@ lvim.builtin.which_key.mappings["st"] = { "Search text in current directory" } +lvim.builtin.which_key.mappings["n"] = { "normal! mz[s1z=`z", "Fix spelling" } +lvim.builtin.which_key.mappings["r"] = { ":%s///g", "Replace" } + lvim.builtin.alpha.active = true lvim.builtin.alpha.mode = "dashboard" lvim.builtin.terminal.active = true