about summary refs log tree commit diff stats
path: root/.config/nvim/lua/config/opt.lua
blob: 0df1dd5d664de5348c75dde514e3054e141ba557 (plain) (blame)
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
local opt = vim.opt
local gv  = vim.g

-- tabs
opt.tabstop      = 4
opt.softtabstop  = 4
opt.shiftwidth   = 4
opt.expandtab    = true
opt.smartindent  = true

-- search
opt.showmatch  = true
opt.ignorecase = true
opt.smartcase  = true

opt.swapfile = false -- noswapfile
opt.undofile = true -- persistent undo

vim.cmd("syntax on")
opt.termguicolors = true

opt.number         = true
opt.relativenumber = true
opt.numberwidth    = 2
opt.cursorline     = true

opt.splitright = true
opt.splitbelow = true

opt.foldlevel = 99
opt.conceallevel = 2


if vim.g.neovide then
    opt.guifont = "JetBrainsMono Nerd Font Mono:h14"
    gv.neovide_scale_factor = 0.08
    gv.neovide_transparency = 0.8
end