From 7952b2bf9321597e0881cf51cc95e1288f38d9de Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Tue, 30 Jul 2024 13:44:18 +0200 Subject: [PATCH] feat: show the effects of substitute etc. live --- lua/weeheavy/prefs.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lua/weeheavy/prefs.lua b/lua/weeheavy/prefs.lua index 8292440..285f4bd 100644 --- a/lua/weeheavy/prefs.lua +++ b/lua/weeheavy/prefs.lua @@ -4,8 +4,12 @@ vim.opt.hlsearch = true -- Incremental search, helps to find 'regex' for search vim.opt.incsearch = true --- Faster search +-- Shows the effects of substitute etc. as you type +vim.opt.inccommand = "split" + +-- Case-insensitive search vim.opt.ignorecase = true + -- If given an uppercase, only display results with uppercase vim.opt.smartcase = true @@ -46,14 +50,11 @@ vim.opt.wrap = false vim.opt.termguicolors = true vim.opt.background = "dark" -- light, dark -- Themes: --- duskfox -- tokyonight-night -- tokyonight-storm -- tokyonight-day -- tokyonight-moon ---vim.cmd.colorscheme("tokyonight-storm") ---vim.cmd.colorscheme("catppuccin-macchiato") -vim.cmd.colorscheme("kanagawa") +vim.cmd.colorscheme("tokyonight-storm") -- Decrease update time vim.opt.updatetime = 250