]> src.twobees.de Git - dotfiles.git/blob - stow/nvim/.config/nvim/lua/set.lua
06abbd458878cf1671eb63b886da9c91aa31988d
[dotfiles.git] / stow / nvim / .config / nvim / lua / set.lua
1 vim.opt.backspace = "indent,eol,start"
2 vim.opt.lazyredraw = true
3 vim.opt.number = true
4 vim.opt.relativenumber = true
5 vim.opt.scrolloff = 8
6 vim.opt.showmatch = true
7 vim.opt.expandtab = true
8 vim.opt.tabstop = 4
9 vim.opt.softtabstop = 4 -- <BS> deletes 4 spacesj
10 vim.opt.shiftwidth = 4
11 vim.opt.pastetoggle = "<F3>"
12 vim.opt.termguicolors = true
13 vim.opt.encoding = "utf-8"
14 vim.opt.modeline = true
15 vim.opt.history = 50
16 vim.opt.errorbells = false
17 vim.opt.visualbell  = false
18 vim.opt.hidden = true
19 vim.opt.joinspaces = false
20 vim.opt.nrformats = ""
21 vim.opt.mouse = "a"
22 vim.opt.undofile = true
23 vim.opt.wildmode = "longest:full"
24 vim.opt.wildmenu = true
25 vim.opt.wildignore = "*.pdf,*.fo,"
26 vim.opt.title = true
27 vim.opt.ruler = true
28 vim.opt.showmode = true
29 vim.opt.showcmd = true
30 vim.opt.laststatus = 2
31 vim.opt.hlsearch = true
32 vim.opt.incsearch = true
33 vim.opt.ignorecase = true
34 vim.opt.smartcase = true
35 vim.opt.background = "dark"
36 vim.opt.autoindent = true
37 vim.opt.listchars.tab = "→\\ "
38 vim.opt.listchars.trail = "·"
39 vim.opt.cursorline = true
40
41 vim.opt.signcolumn = "yes"
42 vim.opt.colorcolumn = "80"
43
44
45 vim.cmd [[
46 let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
47 augroup qs_colors
48     autocmd!
49     autocmd ColorScheme * highlight QuickScopePrimary guifg='#afff5f' gui=underline ctermfg=155 cterm=underline
50     autocmd ColorScheme * highlight QuickScopeSecondary guifg='#5fffff' gui=underline ctermfg=81 cterm=underline
51 augroup END
52 ]]
53
54 vim.cmd [[
55 augroup jumplast
56     autocmd BufReadPost *
57           \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
58           \ |   exe "normal! g`\""
59           \ | endif
60 augroup END
61 ]]