summaryrefslogtreecommitdiffstats
path: root/nvim/lua/core/options.lua
blob: 74d542114464294d1718b7403c51fac3fa15ec19 (plain) (blame)
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
82
83
84
85
86
87
opt = vim.opt
g = vim.g
o = vim.o

g.mapleader = " "
g.maplocalleader = " "
g.loaded_node_provider = 0
g.loaded_perl_provider = 0
g.loaded_python3_provider = 0
g.loaded_ruby_provider = 0

opt.path:append("include/**")
opt.path:append("src/**")
opt.path:append("source/**")
opt.path:append("/usr/include")
opt.path:append("/usr/local/include")
opt.signcolumn     = "no"
opt.number         = false
opt.relativenumber = false
opt.cursorline     = true
opt.termguicolors  = true
opt.showmode       = false

g.autocomplete = true

opt.wildmenu = true
opt.wildmode = { "longest", "list", "full" }
opt.cmdheight = 2
opt.splitkeep = "screen"
opt.equalalways = true
opt.linespace      = 0
opt.showtabline    = 1
opt.laststatus     = 3
opt.pumheight      = 12
opt.list           = false
opt.fillchars      = { eob = " " }
opt.listchars      = { tab = "» ", trail = "·", nbsp = "␣" }
opt.cindent = true
opt.cinoptions = { "l1", "g0", "t0", "(0", "ws1", "N-s", "j1" }
opt.copyindent = true
opt.preserveindent = true
opt.backspace = "indent,eol,start"
opt.mouse = ""
opt.clipboard = "unnamedplus"
opt.undofile = true
opt.swapfile = false
opt.backup = false
opt.virtualedit = "all"
opt.iskeyword:remove({"_",";", ".", ",", "(", ")", "[", "]", "{", "}", "*", "&", "+", "-" })
opt.formatoptions:remove({ "c", "r", "o" })

-- what in the magic=
opt.errorformat = "%f:%l:%c: %t%*[^:]: %m"
opt.commentstring = "// %s"

opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize", "winpos", "folds", "help", "localoptions" }
opt.expandtab = true
opt.tabstop = 1
opt.shiftwidth = 1
opt.softtabstop = 1
opt.smartindent = false
opt.breakindent = true
opt.ignorecase = true
opt.smartcase = true
opt.hlsearch = false
opt.incsearch = true
opt.inccommand = "split"
opt.wrap = false
opt.linebreak = true
opt.scrolloff = 8
opt.sidescrolloff = 8
opt.splitright = true
opt.splitbelow = true
opt.lazyredraw = true
opt.updatetime = 250
opt.timeoutlen = 500
opt.ttimeoutlen = 0
opt.redrawtime = 1500
opt.completeopt = { "menu", "menuone" }
opt.complete = ".,b,t"
opt.autoread = true
opt.autowrite = true
opt.hidden = true
opt.tags = { "./tags;", "tags;" }
opt.shada = "!,'100,<50,s10,h"
opt.shortmess:append("I")
opt.cinwords:append("Assert,PushStruct,internal,arena,Arena")