forked from dineshsalunke/nvim-config
refactor: update some more opts
This commit is contained in:
parent
c355f66268
commit
8023cda180
@ -12,6 +12,8 @@ vim.g.loaded_perl_provider = 0
|
||||
|
||||
local opt = vim.opt
|
||||
|
||||
opt.hlsearch = false
|
||||
opt.incsearch = true
|
||||
opt.autowrite = true -- Enable auto write
|
||||
opt.clipboard = "unnamedplus" -- Sync with system clipboard
|
||||
opt.completeopt = "menu,menuone,noselect"
|
||||
@ -47,13 +49,19 @@ opt.splitright = true -- Put new windows right of current
|
||||
opt.tabstop = 4 -- Number of spaces tabs count for
|
||||
opt.termguicolors = true -- True color support
|
||||
opt.timeoutlen = 300
|
||||
opt.undofile = true
|
||||
opt.undolevels = 10000
|
||||
opt.updatetime = 200 -- Save swap file and trigger CursorHold
|
||||
opt.updatetime = 50 -- Save swap file and trigger CursorHold
|
||||
opt.wildmode = "longest:full,full" -- Command-line completion mode
|
||||
opt.winminwidth = 5 -- Minimum window width
|
||||
opt.wrap = false -- Disable line wrap
|
||||
|
||||
-- opt.colorcolumn = "80"
|
||||
|
||||
opt.swapfile = false
|
||||
opt.undofile = true
|
||||
opt.backup = false
|
||||
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
|
||||
if vim.fn.has("nvim-0.9.0") == 1 then
|
||||
opt.splitkeep = "screen"
|
||||
opt.shortmess:append({ C = true })
|
||||
|
Loading…
x
Reference in New Issue
Block a user