feat(options): improve word

This commit is contained in:
phuclee 2025-10-13 23:57:17 +07:00 committed by GitHub
parent cfc0ae0184
commit 152361a6d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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