From 152361a6d5c1499f72ead2ec5f60841f57444659 Mon Sep 17 00:00:00 2001 From: phuclee <125681538+phucisstupid@users.noreply.github.com> Date: Mon, 13 Oct 2025 23:57:17 +0700 Subject: [PATCH] feat(options): improve word --- lua/lazyvim/config/options.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/config/options.lua b/lua/lazyvim/config/options.lua index 2ae1b38d..30d2a709 100644 --- a/lua/lazyvim/config/options.lua +++ b/lua/lazyvim/config/options.lua @@ -77,6 +77,7 @@ opt.grepformat = "%f:%l:%c:%m" opt.grepprg = "rg --vimgrep" opt.ignorecase = true -- Ignore case opt.inccommand = "nosplit" -- preview incremental substitute +opt.iskeyword = '@,48-57,_,192-255,-' -- Treat dash as `word` textobject part opt.jumpoptions = "view" opt.laststatus = 3 -- global statusline opt.linebreak = true -- Wrap lines at convenient points @@ -99,6 +100,7 @@ opt.smartcase = true -- Don't ignore case with capitals opt.smartindent = true -- Insert indents automatically opt.smoothscroll = true opt.spelllang = { "en" } +vim.o.spelloptions = 'camel' -- Treat camelCase word parts as separate words opt.splitbelow = true -- Put new windows below current opt.splitkeep = "screen" opt.splitright = true -- Put new windows right of current