summaryrefslogtreecommitdiff
path: root/lua/talha/set.lua
blob: 91129adfb38bf12a79d26f3558d6003b02128a0e (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
local op = vim.opt

op.nu = true
op.relativenumber = true

op.softtabstop = 2
op.shiftwidth = 2
op.expandtab = false

op.cindent = true
op.wrap = true

op.swapfile = false
op.backup = false
op.undodir = GetHomeDir() .. "/.vim/undodir"
op.undofile = true

op.hlsearch = false
op.incsearch = true

op.termguicolors = true
op.cursorline = true

op.scrolloff = 8

op.autoread = true

op.updatetime = 50

op.colorcolumn = '80'

if vim.fn.executable('rg') > 0 then
  op.grepprg = 'rg --vimgrep'
end

-- netrw settings
-- required to allow mm (mark-move) command to move file
vim.g.netrw_keepdir = 1
vim.g.netrw_banner = 0
--vim.g.netrw_browse_split = 4
vim.g.netrw_altv = 1
--vim.g.netrw_liststyle = 3