From 43fd5c1630142d25dc560f7be36695fb33cc8c30 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 30 Jul 2023 21:49:26 +0200 Subject: Update neovim config code style a bit --- .config/nvim/lua/keybinds.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to '.config/nvim/lua/keybinds.lua') diff --git a/.config/nvim/lua/keybinds.lua b/.config/nvim/lua/keybinds.lua index 800eaab..b0cab46 100644 --- a/.config/nvim/lua/keybinds.lua +++ b/.config/nvim/lua/keybinds.lua @@ -42,11 +42,19 @@ vim.keymap.set("n", "t", ":belowright split | resize 5 | terminal") vim.keymap.set("n", "[", ufo.openAllFolds) vim.keymap.set("n", "]", ufo.closeAllFolds) vim.keymap.set("n", "r", vim.lsp.buf.rename) +vim.keymap.set("n", "N", ":bnext") +vim.keymap.set("n", "P", ":bprevious") -vim.keymap.set({ "n"; "o"; "x" }, "W", function() spider.motion("w") end) -vim.keymap.set({ "n"; "o"; "x" }, "E", function() spider.motion("e") end) -vim.keymap.set({ "n"; "o"; "x" }, "B", function() spider.motion("b") end) -vim.keymap.set({ "n"; "o"; "x" }, "gE", function() spider.motion("ge") end) +local spider_opts = { skipInsignificantPunctuation = true } + +vim.keymap.set({ "n"; "o"; "x" }, "", + function() spider.motion("w", spider_opts) end) +vim.keymap.set({ "n"; "o"; "x" }, "", + function() spider.motion("e", spider_opts) end) +vim.keymap.set({ "n"; "o"; "x" }, "", + function() spider.motion("b", spider_opts) end) +vim.keymap.set({ "n"; "o"; "x" }, "", + function() spider.motion("ge", spider_opts) end) vim.keymap.set({ "t" }, "", "") vim.opt.whichwrap = "<,>,h,l,[,]" @@ -74,4 +82,6 @@ wk.register({ ["R"] = "Show References"; ["J"] = "Signature help"; ["U"] = "Undo tree"; + ["N"] = "Next tab"; + ["P"] = "Previous tab"; }, { prefix = "" }); -- cgit v1.2.3 4569217169ea9eea8d395afb5971056e7cd4b3'>treecommitdiff
Commit message (Expand)AuthorFilesLines
2023-02-04Fix tmux config and update alacrittyLuca Matei Pintilie4-3/+11
2023-02-04Fill out the README a bit moreLuca Matei Pintilie1-0/+33