Summary Files Commits Branches @commit @diff @stats
path: root / lua / text.lua
blob: 97cb85abdc2ecb34b5e75a939b6c96bcffbd49e3 (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
--[=[ Search ]=]--

vim.o.hlsearch = false -- No highlighting when searching

--[=[ Cursor ]=]--

vim.o.showmatch = true -- Jump to opening brace when having typed closing one
vim.o.cursorline = true
vim.api.nvim_create_autocmd({ "InsertLeave", "BufEnter" }, {
	command = "set cul"
})
vim.api.nvim_create_autocmd({ "InsertEnter", "BufLeave" }, {
	command = "set nocul"
})

--[=[ Characters ]=]--

vim.o.list = true
vim.opt.listchars = { tab = "│ ", extends = ">", precedes = "<" }

vim.o.tabstop = 4
vim.o.shiftwidth = 4

--[=[ Windows ]=]--

vim.o.splitbelow = true
vim.o.splitright = true