-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsets.lua
68 lines (59 loc) · 1.39 KB
/
sets.lua
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
local o = vim.o
local g = vim.g
local opt = vim.opt
vim.keymap.set({ "n", "v" }, "<Space>", "<Nop>", { silent = true })
opt.wrap = false
o.encoding = "utf-8"
o.cmdheight = 1
o.mouse = "a"
o.synmaxcol = 500
o.foldlevelstart = 20
o.showmode = false
o.signcolumn = "yes"
o.diffopt = "vertical"
opt.equalalways = true
-- o.json_ignore_conceal = 1
-- o.html_ignore_conceal = 1
--open local vimrc first
o.exrc = true
--
o.timeoutlen = 400
o.ttimeoutlen = 0
o.mmp = 2000000
-- opt.guicursor=""
o.scrolloff = 15
o.hidden = true
o.switchbuf = "useopen"
o.errorbells = false
o.cursorline = true
o.autoread = true
o.showcmd = true
o.magic = true
o.expandtab = true
o.clipboard = "unnamedplus"
o.nu = false
o.wrap = false
-- " case-insensitive searching
o.ignorecase = true
-- " but become case-sensitive if you type uppercase characters
o.smartcase = true
o.swapfile = false
o.backup = false
o.writebackup = false
o.undodir = "/Users/Luis/.vim/undodir"
o.undofile = true
o.incsearch = true
o.hlsearch = false
o.updatetime = 100
o.colorcolumn = "120"
o.wildmenu = true
-- o.guitablabel = [[\[%N\]\ %t\ %M"]]
-- set guioptions-=T guioptions-=m
-- " Do NOT yank with x/s
vim.cmd([[nnoremap x "_x]])
opt.completeopt = { "menu", "menuone", "noselect" }
-- o.completion_matching_strategy_list = { "exact", "substring", "fuzzy" }
o.termguicolors = true
if vim.fn.has("nvim") == 1 then
vim.g.NVIM_TUI_ENABLE_TRUE_COLOR = 1
end