blob: 8b8981c2774f821fc01ec5b04cff658af0e845f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
(tset vim.opt :wrap false)
(tset vim.opt :linebreak false)
(tset vim.opt :tabstop 2)
(tset vim.opt :shiftwidth 2)
(tset vim.bo :softtabstop 2)
(tset vim.opt :expandtab true)
(tset vim.opt :number true)
(tset vim.o :signcolumn :yes)
(tset vim.opt :termguicolors true)
;--vim.opt.fillchars = { eob = ""}
(vim.cmd (.. "colorscheme " _G.settings.colorscheme))
(when (= (vim.fn.has :persistent_undo) 1)
(local target_path (vim.fn.expand "~/.undodir"))
(when (not= (vim.fn.isdirectory target_path) 1)
(vim.fn.mkdir target_path :p 0777))
(tset vim.o :undodir target_path)
(tset vim.o :undofile true))
|