summaryrefslogtreecommitdiff
path: root/plugin/10_options.lua
blob: ce3b235982f997c1ded7fefef3d423e942c9c0fd (plain)
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
vim.o.title = true
vim.opt.fillchars = { msgsep ="‾", vert="┋" }

vim.o.autoindent = true
vim.o.expandtab = true
vim.o.shiftwidth = 4
vim.o.tabstop = 4
vim.o.cinoptions = "l1,:0,g0,E-s,N-s,t0,(s,J1,j1"
vim.o.virtualedit = "block"

vim.o.splitright = true
vim.o.splitbelow = true

vim.o.linebreak = true
vim.o.wrap = true
vim.o.smoothscroll = true

vim.o.swapfile = false
vim.o.undofile = true
vim.o.shada = "!,'100,<50,s10,:1000,/100,@100,h,r/tmp/,rterm:,rhealth:"

vim.o.foldlevelstart = 99
vim.o.foldtext = ""

vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.incsearch = true
vim.o.inccommand = "split"

vim.o.completeopt = "menu,menuone,noselect,fuzzy"
vim.o.pumheight = 10
vim.o.pummaxwidth = 50
vim.o.wildmode = "longest:full,full"
vim.o.wildoptions = "pum,fuzzy"
vim.opt.wildignore:append({ "*.pyc", "__pycache__", "*~", "#*#", "*.o" })

vim.o.spelllang = "en_us,en-academic"
vim.o.spelloptions = "camel"
vim.opt.complete:append("kspell")

vim.o.signcolumn = "no"

vim.o.number = true
vim.o.cursorline = true

vim.g.tex_flavor = "latex"
vim.g.tex_no_error = 1
vim.g.tex_comment_nospell = 1
vim.opt.tags:append({ "tags;~", ".tags;~" })

vim.o.laststatus = 1
vim.o.statusline = "%<%f %h%w%m%r %=%{% &showcmdloc == 'statusline' ? '%-10.S ' : '' %}%{% exists('b:keymap_name') ? '<'..b:keymap_name..'> ' : '' %}%{% &busy > 0 ? '◐ ' : '' %}%{% luaeval('(package.loaded[''vim.diagnostic''] and #vim.diagnostic.count() ~= 0 and vim.diagnostic.status() .. '' '') or '''' ') %}%{% v:lua.require'mo.statusline'.lsp_status() %}%{% &ruler ? ( &rulerformat == '' ? '%-14.(%l,%c%V%) %P' : &rulerformat ) : '' %}"