summaryrefslogtreecommitdiff
path: root/lua/config/options.lua
blob: 47fb6f2bc91903b3cb26085f6c74177b5aec50f3 (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
local o = vim.o

vim.o.nu = true
vim.o.relativenumber = true
-- tab and indent opts
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
-- indents
vim.o.breakindent = true
vim.o.autoindent = true
vim.o.copyindent = true
-- no line wrapping
vim.o.wrap = false
-- minimum num lines to keep around cursor
vim.o.scrolloff = 8
vim.o.sidescrolloff = 8
-- search
vim.o.ignorecase = true
vim.o.smartcase = true
-- save + undo
vim.o.swapfile = false
vim.o.backup = false
vim.o.undofile = true
vim.o.hlsearch = false
-- misc
vim.o.mouse = 'a'
vim.o.clipboard = 'unnamedplus'
vim.o.completeopt = 'menuone,noselect,fuzzy'
vim.o.termguicolors = true

-- leader keys
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"



-- vim.o.updatetime = 250
-- vim.o.timeoutlen = 300