From b9ddeee54ede2f3901291375977fa8ff0750bfc4 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 13 Jan 2026 20:27:43 +0000 Subject: [PATCH] Add search behavior settings for improved usability Configure ignorecase, smartcase, incsearch, and hlsearch options to enhance search functionality in the editor. --- lua/settings.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/settings.lua b/lua/settings.lua index c744ed7..4d6af08 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -49,6 +49,12 @@ vim.opt.pumblend = 0 -- No transparency -- Spelling vim.opt.spelllang = { "en_gb" } +-- Search behavior +vim.opt.ignorecase = true -- Case-insensitive search by default +vim.opt.smartcase = true -- Case-sensitive when search contains uppercase letters +vim.opt.incsearch = true -- Show matches as you type +vim.opt.hlsearch = true -- Highlight all search matches + -- Keyword characters (add $ for PHP/shell variables, - for CSS/HTML/config files) vim.opt.iskeyword:append("$") vim.opt.iskeyword:append("-")