]> src.twobees.de Git - dotfiles.git/blob - stow/nvim/.config/nvim/lua/set.lua
sway
[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 vim.opt.wrap = false
45
46 vim.cmd [[
47 let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
48 augroup qs_colors
49     autocmd!
50     autocmd ColorScheme * highlight QuickScopePrimary guifg='#afff5f' gui=underline ctermfg=155 cterm=underline
51     autocmd ColorScheme * highlight QuickScopeSecondary guifg='#5fffff' gui=underline ctermfg=81 cterm=underline
52 augroup END
53 ]]
54
55 vim.cmd [[
56 augroup jumplast
57     autocmd BufReadPost *
58           \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
59           \ |   exe "normal! g`\""
60           \ | endif
61 augroup END
62 ]]