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:
parent
b53515e492
commit
b9ddeee54e
|
|
@ -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("-")
|
||||
|
|
|
|||
Loading…
Reference in New Issue