summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup.lua
blob: 68dba9eebd9330f1e046abb3877edec8e8a2c04a (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
43
44
45
46
47
48
local set = vim.opt

if vim.fn.has('mouse') then
   set.mouse = "a"
end

if vim.fn.has('filetype') then
    vim.cmd('filetype indent plugin on')
end

if vim.fn.has('syntax') then
    vim.cmd('syntax on')
end

if vim.fn.has('persistent_undo') then
    vim.cmd('set undodir=$HOME/.vim/undo')
    vim.cmd('set undofile')
end

set.termguicolors = true
set.hidden = true
set.wildmenu = true
set.wildignorecase = true
set.fileignorecase = true
set.showcmd = true
set.hlsearch = true
set.ignorecase = true
set.smartcase = true
set.incsearch = true
set.backspace= 'indent,eol,start'
set.pastetoggle = '<F11>'
set.confirm = true
set.relativenumber = true
set.shiftwidth = 4
set.softtabstop = 4
set.autoindent = true
set.expandtab = true
set.showmode = false
set.ruler = false
set.timeout = false
set.ttimeoutlen = 200
set.wrap = false
set.fcs = 'eob: '
set.swapfile = false

vim.cmd('colorscheme gruvbox')
vim.cmd('highlight CursorLineNr cterm=bold ctermfg=Yellow ctermbg=none')
vim.cmd('highlight Normal ctermbg=none')