Add search behavior settings for improved usability

Configure ignorecase, smartcase, incsearch, and hlsearch
options to enhance search functionality in the editor.
This commit is contained in:
Ray Elliott 2026-01-13 20:27:43 +00:00
parent b53515e492
commit b9ddeee54e
1 changed files with 6 additions and 0 deletions

View File

@ -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("-")