aboutsummaryrefslogtreecommitdiff
path: root/lua/config/settings.lua
blob: 50c5be30f684929cf37d7a34f648e4f29fde0603 (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
-- 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

-- setup leader and local leader
vim.g.mapleader = " "
vim.g.maplocalleader = ";"