mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(options): improve word
This commit is contained in:
parent
cfc0ae0184
commit
152361a6d5
1 changed files with 2 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ opt.grepformat = "%f:%l:%c:%m"
|
||||||
opt.grepprg = "rg --vimgrep"
|
opt.grepprg = "rg --vimgrep"
|
||||||
opt.ignorecase = true -- Ignore case
|
opt.ignorecase = true -- Ignore case
|
||||||
opt.inccommand = "nosplit" -- preview incremental substitute
|
opt.inccommand = "nosplit" -- preview incremental substitute
|
||||||
|
opt.iskeyword = '@,48-57,_,192-255,-' -- Treat dash as `word` textobject part
|
||||||
opt.jumpoptions = "view"
|
opt.jumpoptions = "view"
|
||||||
opt.laststatus = 3 -- global statusline
|
opt.laststatus = 3 -- global statusline
|
||||||
opt.linebreak = true -- Wrap lines at convenient points
|
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.smartindent = true -- Insert indents automatically
|
||||||
opt.smoothscroll = true
|
opt.smoothscroll = true
|
||||||
opt.spelllang = { "en" }
|
opt.spelllang = { "en" }
|
||||||
|
vim.o.spelloptions = 'camel' -- Treat camelCase word parts as separate words
|
||||||
opt.splitbelow = true -- Put new windows below current
|
opt.splitbelow = true -- Put new windows below current
|
||||||
opt.splitkeep = "screen"
|
opt.splitkeep = "screen"
|
||||||
opt.splitright = true -- Put new windows right of current
|
opt.splitright = true -- Put new windows right of current
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue