search opt

This commit is contained in:
2026-05-27 19:14:50 +03:00
parent 5acac8cb17
commit 2c52feaeaa
2 changed files with 9 additions and 4 deletions

View File

@@ -78,9 +78,14 @@ vim.opt.mousescroll = 'hor:1,ver:1'
vim.opt.mouse = 'a' -- Enable mouse support
-- Search
vim.opt.ignorecase = true
vim.opt.smartcase = true -- Override ignorecase if search contains upper case chars
vim.opt.inccommand = 'split' -- Live substitution preview
vim.opt.ignorecase = true -- Search case-insensitively by default
vim.opt.smartcase = true -- Make search case-sensitive if uppercase is used
vim.opt.incsearch = true -- Show matches live while typing a search
vim.opt.hlsearch = true -- Highlight all matches after searching
vim.opt.shortmess:remove('S') -- Show search count, e.g. [3/17]
vim.opt.inccommand = 'split' -- Preview substitutions live in a split
vim.opt.completeopt = { 'fuzzy', 'menuone', 'popup', 'noselect' }
-- Splits