aboutsummaryrefslogtreecommitdiff
path: root/lua/config/settings.lua
blob: 3fdff37272f6770bab5427cc2193bd68019b4945 (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
-- enable line number and relative line numbers
vim.opt.number = true
vim.opt.relativenumber = true

-- make splits open on bottom and right
vim.opt.splitbelow = true
vim.opt.splitright = true

-- disable line wrapping
vim.opt.wrap = false

-- setup tabs nicelly
vim.opt.expandtab = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2

-- setup a nice scrolloff value
vim.opt.scrolloff = 20

-- make virtual edit work for blocks
vim.opt.virtualedit = "block"

-- make :s and others open a split
vim.opt.inccommand = "split"

-- ignore case
vim.opt.ignorecase = true

-- disable neovim swap files
vim.opt.swapfile = false