summaryrefslogtreecommitdiff
path: root/lua/config.lua
blob: 8d41cbc6128bfa7353938416e0a150f98fad7caa (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
-- Indentation
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = false
vim.o.autoindent = true
vim.o.smartindent = true

-- Line numbers
vim.o.number = true
vim.o.relativenumber = true

-- Misc
vim.o.conceallevel = 2
vim.o.splitbelow = true
vim.o.shortmess = vim.o.shortmess .. "c"
vim.o.showmode = false
vim.o.formatoptions = string.gsub(vim.o.formatoptions, "[cro]", "")
vim.o.cmdheight = 2
vim.o.errorbells = false
vim.o.scrolloff = 8
vim.o.encoding = "UTF-8"
vim.o.fillchars = vim.o.fillchars .. "vert:█"
vim.o.colorcolumn = "90"
vim.o.signcolumn = "yes"

-- Completion
vim.o.complete = vim.o.complete .. ",kspell"
-- vim.o.completeopt = "menuone,longest"
vim.o.wildmenu = true
vim.o.wildmode = "full"

-- Searching
vim.o.hlsearch = false
vim.o.incsearch = true

-- Backup
vim.o.backup = false
vim.o.writebackup = false

-- Spell checking
vim.o.spell = false

-- Time
vim.o.updatetime = 6000
vim.o.timeoutlen = 300
vim.o.ttimeoutlen = 10

-- Style
vim.o.background = "dark"
vim.o.termguicolors = true

vim.g.mapleader = ","

-- Plugins
vim.g["vim_markdown_folding_disabled"] = 1

vim.g.rustfmt_autosave = 1

vim.g.nerdtree_tabs_open_on_console_startup = 1

vim.g.indent_blankline_char = '¦'

-- Custom globals
vim.g.is_term_open = 0
vim.g.terminal_height = 12
vim.g.term_buf = 0
vim.g.term_win = 0