blob: add765b9cc4585daf4b9cbb3e02512edd36eca50 (
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
|
-- 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 = 0 -- Conceals are broken for vimdoc for some reason
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 = "92"
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
-- Disable mouse support
vim.o.mouse= ""
-- Style
vim.o.termguicolors = true
vim.g.mapleader = ","
-- Plugins
vim.g["vim_markdown_folding_disabled"] = 1
vim.g.rustfmt_command = "rustup run nightly rustfmt --edition 2021"
vim.g.rustfmt_autosave = 1
-- Custom globals
vim.g.terminal_height = 12
vim.g.term_buf = 0
vim.g.term_win = -1
|