feat(editor): adjust timeoutlen + sort
This commit is contained in:
parent
a957874880
commit
7232abb157
1 changed files with 21 additions and 23 deletions
|
@ -11,38 +11,31 @@ cmd([[
|
||||||
g.mapleader = ' '
|
g.mapleader = ' '
|
||||||
|
|
||||||
-- misc
|
-- misc
|
||||||
opt.syntax = 'enable'
|
|
||||||
opt.encoding = 'utf-8'
|
|
||||||
opt.clipboard = 'unnamedplus'
|
|
||||||
opt.backspace = { 'eol', 'start', 'indent' }
|
opt.backspace = { 'eol', 'start', 'indent' }
|
||||||
|
opt.clipboard = 'unnamedplus'
|
||||||
|
opt.encoding = 'utf-8'
|
||||||
opt.matchpairs = { '(:)', '{:}', '[:]', '<:>' }
|
opt.matchpairs = { '(:)', '{:}', '[:]', '<:>' }
|
||||||
|
opt.syntax = 'enable'
|
||||||
|
|
||||||
-- indention
|
-- indention
|
||||||
opt.autoindent = true
|
opt.autoindent = true
|
||||||
opt.smartindent = true
|
|
||||||
|
|
||||||
-- tabs
|
|
||||||
opt.tabstop = indent
|
|
||||||
opt.softtabstop = indent
|
|
||||||
opt.shiftwidth = indent
|
|
||||||
opt.expandtab = true
|
opt.expandtab = true
|
||||||
|
opt.shiftwidth = indent
|
||||||
|
opt.smartindent = true
|
||||||
|
opt.softtabstop = indent
|
||||||
|
opt.tabstop = indent
|
||||||
|
|
||||||
-- search
|
-- search
|
||||||
opt.wildmenu = true
|
opt.hlsearch = false
|
||||||
opt.ignorecase = true
|
opt.ignorecase = true
|
||||||
opt.smartcase = true
|
opt.smartcase = true
|
||||||
opt.wildignore = opt.wildignore + { '*/node_modules/*', '*/.git/*', '*/vendor/*' }
|
opt.wildignore = opt.wildignore + { '*/node_modules/*', '*/.git/*', '*/vendor/*' }
|
||||||
opt.hlsearch = false
|
opt.wildmenu = true
|
||||||
|
|
||||||
-- ui
|
-- ui
|
||||||
opt.number = true
|
|
||||||
opt.rnu = true
|
|
||||||
opt.cursorline = true
|
opt.cursorline = true
|
||||||
opt.signcolumn = 'yes'
|
|
||||||
opt.laststatus = 2
|
opt.laststatus = 2
|
||||||
opt.wrap = false
|
opt.lazyredraw = true
|
||||||
opt.scrolloff = 18
|
|
||||||
opt.sidescrolloff = 3 -- Lines to scroll horizontally
|
|
||||||
opt.list = true
|
opt.list = true
|
||||||
opt.listchars = {
|
opt.listchars = {
|
||||||
tab = '❘-',
|
tab = '❘-',
|
||||||
|
@ -52,15 +45,20 @@ opt.listchars = {
|
||||||
precedes = '«',
|
precedes = '«',
|
||||||
nbsp = '×',
|
nbsp = '×',
|
||||||
}
|
}
|
||||||
opt.showmode = false
|
|
||||||
opt.lazyredraw = true
|
|
||||||
opt.mouse = 'a'
|
opt.mouse = 'a'
|
||||||
opt.splitright = true -- Open new split to the right
|
opt.number = true
|
||||||
|
opt.rnu = true
|
||||||
|
opt.scrolloff = 18
|
||||||
|
opt.showmode = false
|
||||||
|
opt.sidescrolloff = 3 -- Lines to scroll horizontally
|
||||||
|
opt.signcolumn = 'yes'
|
||||||
opt.splitbelow = true -- Open new split below
|
opt.splitbelow = true -- Open new split below
|
||||||
|
opt.splitright = true -- Open new split to the right
|
||||||
|
opt.wrap = false
|
||||||
|
|
||||||
-- backups
|
-- backups
|
||||||
opt.swapfile = false
|
|
||||||
opt.backup = false
|
opt.backup = false
|
||||||
|
opt.swapfile = false
|
||||||
opt.writebackup = false
|
opt.writebackup = false
|
||||||
|
|
||||||
-- autocomplete
|
-- autocomplete
|
||||||
|
@ -68,10 +66,10 @@ opt.completeopt = { 'menu', 'menuone', 'noselect' }
|
||||||
opt.shortmess = opt.shortmess + { c = true }
|
opt.shortmess = opt.shortmess + { c = true }
|
||||||
|
|
||||||
-- perfomance
|
-- perfomance
|
||||||
opt.updatetime = 100
|
|
||||||
opt.timeoutlen = 400
|
|
||||||
opt.redrawtime = 1500
|
opt.redrawtime = 1500
|
||||||
|
opt.timeoutlen = 250
|
||||||
opt.ttimeoutlen = 10
|
opt.ttimeoutlen = 10
|
||||||
|
opt.updatetime = 100
|
||||||
|
|
||||||
-- theme
|
-- theme
|
||||||
opt.termguicolors = true
|
opt.termguicolors = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue