diff --git a/lua/keybinds.lua b/lua/keybinds.lua index 33122c8..79a7ded 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -1,10 +1,10 @@ local opts = { noremap = true, silent = true } ---local term_opts = { silent = true } +--Local term_opts = { silent = true } local bind = vim.api.nvim_set_keymap local set = vim.keymap.set --- bind a leader key +-- Bind a leader key bind("", ";", "", opts) -- undo any previous bind vim.g.mapleader = ";" vim.g.maplocalleader = ";" @@ -29,17 +29,17 @@ bind("n", "", ":NvimTreeToggle", opts) -- Fuzzy finder local telescope_status_ok, telescope = pcall(require, "telescope.builtin") if telescope_status_ok then - set("n", "ff", telescope.find_files, {}) - set("n", "fg", telescope.live_grep, {}) - set("n", "fb", telescope.buffers, {}) - set("n", "fh", telescope.help_tags, {}) + set("n", "ff", telescope.find_files, {}) + set("n", "fg", telescope.live_grep, {}) + set("n", "fb", telescope.buffers, {}) + set("n", "fh", telescope.help_tags, {}) end -- Better tabs ---bind("n", "n", ":tabnew", opts) ---bind("n", "c", ":tabclose", opts) ---bind("n", "l", ":tabnext", opts) ---bind("n", "h", ":tabprev", opts) +bind("n", "t", ":tabnew", opts) +bind("n", "c", ":tabclose", opts) +bind("n", "", ":tabnext", opts) +bind("n", "", ":tabprev", opts) -- Better window navigation bind("n", "", "h", opts) @@ -54,10 +54,8 @@ bind("n", "", ":vertical resize -2", opts) bind("n", "", ":vertical resize +2", opts) -- Navigate tabs -bind("n", "", ":tabnew", opts) -bind("n", "", ":tabclose", opts) -bind("n", "", ":tabp", opts) -bind("n", "", ":tabn", opts) +bind("n", "", ":tabp", opts) +bind("n", "", ":tabn", opts) -- Visual -- -- Stay in indent mode