From caaff2aee3a2496585cf4352579f8d856e1e5d29 Mon Sep 17 00:00:00 2001 From: sam rolfe Date: Thu, 9 Oct 2025 11:45:39 +1100 Subject: [PATCH] More keybindings --- nvim/lua/sam/options.lua | 11 +++++++++++ nvim/lua/sam/plugins/telescope.lua | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/nvim/lua/sam/options.lua b/nvim/lua/sam/options.lua index e927ce1..19009f3 100644 --- a/nvim/lua/sam/options.lua +++ b/nvim/lua/sam/options.lua @@ -6,6 +6,17 @@ vim.g.maplocalleader = " " -- Set the local leader key to the space bar. vim.opt.number = true -- Absolute numbers on all lines vim.opt.relativenumber = true -- Relative numbers (hybrid when both enabled) +-- =================================================================== +-- Search Settings +-- =================================================================== + +vim.opt.hlsearch = true -- Highlight all matches on search +vim.opt.incsearch = true -- Show search results incrementally as you type +vim.opt.ignorecase = true -- Ignore case in search patterns +vim.opt.smartcase = true -- Override ignorecase if search pattern contains uppercase letters + + + -- =================================================================== -- Essential Keybindings -- =================================================================== diff --git a/nvim/lua/sam/plugins/telescope.lua b/nvim/lua/sam/plugins/telescope.lua index cc1756c..c20b81d 100644 --- a/nvim/lua/sam/plugins/telescope.lua +++ b/nvim/lua/sam/plugins/telescope.lua @@ -10,6 +10,11 @@ return { -- ADD THIS LINE to load the new extension require("telescope").load_extension("themes") +vim.keymap.set("n", "f", builtin.find_files, { desc = "Find files" }) + + vim.keymap.set("n", "ff", builtin.find_files, { desc = "Find files" }) + vim.keymap.set("n", "fg", builtin.live_grep, { desc = "Live grep" }) + -- ADD THIS LINE to create the new keymap vim.keymap.set("n", "th", "Telescope themes", { desc = "Switch Theme" }) end,