forked from askfiy/nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetting.lua
More file actions
81 lines (74 loc) · 1.94 KB
/
setting.lua
File metadata and controls
81 lines (74 loc) · 1.94 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
-- some options are enabled in neovim built-in, and the settings will not be repeated here
local setting = {
g = {
mapleader = " ",
},
opt = {
ruler = false,
showmode = false,
swapfile = false,
writebackup = false,
-- signcolumn = "yes:1",
signcolumn = "number",
completeopt = "menuone,noselect",
pumheight = 10,
updatetime = 500,
timeoutlen = 500,
termguicolors = true,
cursorline = true,
numberwidth = 4,
number = true,
relativenumber = true,
scrolloff = 21,
mouse = "a",
list = true,
spell = true,
spelllang = "en_us,cjk",
ignorecase = true,
smartcase = true,
filetype = "plugin",
foldmethod = "indent",
foldlevel = 100,
clipboard = "unnamedplus",
smartindent = true,
iskeyword = "@,48-57,_,192-255",
laststatus = 3,
linebreak = true,
sessionoptions = "buffers,curdir,folds,help,tabpages,winsize,globals",
fillchars = "vert:┃,horiz:━,verthoriz:╋,horizup:┻,horizdown:┳,vertleft:┫,vertright:┣,eob: ",
},
}
local disable_builtin_plugins = {
-- "netrw",
-- "netrwPlugin",
"netrwSettings",
"netrwFileHandlers",
"2html_plugin",
"getscript",
"getscriptPlugin",
"gzip",
"logipat",
"matchit",
"tar",
"tarPlugin",
"rrhelper",
"spellfile_plugin",
"vimball",
"vimballPlugin",
"zip",
"zipPlugin",
}
-- vim.opt.listchars:append("space:⋅")
-- vim.opt.listchars:append("eol:↴")
-- vim.opt.listchars:append("tab:↹ ")
vim.opt.shortmess:append("sI")
vim.opt.whichwrap:append("<>[]hl")
for prefix, tab in pairs(setting) do
for key, value in pairs(tab) do
vim[prefix][key] = value
end
end
for _, builtin_plugin in ipairs(disable_builtin_plugins) do
vim.g["loaded_" .. builtin_plugin] = 1
end
return setting