aboutsummaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/settings.lua
blob: e65dbff359a8c7a8bc70ca2db452d0d473d58d15 (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
49
50
51
52
53
local g = vim.g
local o = vim.o

-- Amount of lines to keep below and above the cursor
o.scrolloff = 10

-- I like it this way
o.number = true
o.cursorline = true
o.relativenumber = true
o.numberwidth = 4

o.signcolumn = "yes:1"
o.shortmess = o.shortmess .. "c"
o.completeopt = "menuone,noselect,noinsert"

o.hidden = true
o.backup = false
o.undofile = true
o.swapfile = false
o.writebackup = false
o.encoding = "utf-8"
o.guicursor = "a:ver25-blinkwait50-blinkon50-blinkoff50"

o.ruler = true
o.showcmd = true
o.showmode = true
o.laststatus = 2

o.smarttab = true
o.expandtab = true
o.autoindent = true
o.softtabstop = -1
o.shiftwidth = 2
o.tabstop = 2

-- Search is case insensitive unless /C or searched capitalized
o.hlsearch = true
o.incsearch = true
o.smartcase = true
o.ignorecase = true

-- Invisible characters
o.list = true
o.listchars = "trail:·,nbsp:×,tab:->"

-- Clipboard works with os
o.clipboard = "unnamedplus"

-- Map leader to space
g.mapleader = " "
g.maplocalleader = " "