This repository was archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathsetting.lua
More file actions
60 lines (54 loc) · 1.31 KB
/
setting.lua
File metadata and controls
60 lines (54 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
local M = {}
M.g = {
mapleader = " ",
}
M.opt = {
ruler = false,
showmode = false,
swapfile = false,
cmdheight = 1,
signcolumn = "yes:1",
completeopt = "menuone,noselect",
pumheight = 10,
updatetime = 500,
timeoutlen = 500,
termguicolors = true,
cursorline = true,
numberwidth = 2,
number = true,
relativenumber = true,
splitright = true,
scrolloff = 21,
smoothscroll = true,
mouse = "a",
list = true,
spell = true,
spelllang = "en_us,cjk",
ignorecase = true,
smartcase = true,
filetype = "plugin",
foldmethod = "indent",
foldlevel = 100,
foldlevelstart = 99,
foldcolumn = "0",
clipboard = "unnamedplus",
smartindent = true,
iskeyword = "@,48-57,_,192-255",
laststatus = 3,
linebreak = true,
fillchars = "eob: ",
fileencodings = "ucs-bom,utf-8,gbk,big5,gb18030,latin1",
sessionoptions = "buffers,curdir,folds,help,tabpages,winsize,globals",
}
-- vim.opt.listchars:append("space:⋅")
-- vim.opt.listchars:append("eol:↴")
-- vim.opt.listchars:append("tab:↹ ")
vim.opt.diffopt:append("vertical")
vim.opt.shortmess:append("sI")
vim.opt.whichwrap:append("<>[]hl")
for prefix, tbl in pairs(M) do
for key, value in pairs(tbl) do
vim[prefix][key] = value
end
end
return M