-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
61 lines (60 loc) · 1.33 KB
/
init.lua
File metadata and controls
61 lines (60 loc) · 1.33 KB
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
54
55
56
57
58
59
60
61
---@return boolean
BufIsSpecial = function()
return vim.bo.buftype ~= ""
end
require("remaps")
require("config.lazy")
if not vim.g.vscode then
require("autocmd")
function Line(line, width)
local s = tostring(line)
local pad = width - #s
if pad > 0 then
return string.rep(" ", pad) .. s
else
return s
end
end
vim.o.wrap = true
vim.o.signcolumn = "yes:1"
vim.o.foldcolumn = "0"
vim.o.number = false
vim.o.statuscolumn = "%{v:lua.Line(v:lnum, 4)}%s"
vim.opt.fillchars = { eob = " " }
vim.opt.formatoptions:remove("t")
vim.o.textwidth = 0
vim.o.cursorline = true
vim.o.cmdheight = 1
vim.o.showcmd = false
vim.o.ruler = false
vim.o.showmode = false
vim.o.jumpoptions = "stack,view"
vim.opt.sessionoptions:remove("terminal")
vim.opt.diffopt = {
"internal",
"filler",
"closeoff",
"hiddenoff",
"algorithm:histogram",
"indent-heuristic",
"linematch:200",
"context:99999",
}
end
if vim.loop.os_uname().sysname == "Windows_NT" then
vim.cmd("language en_US")
else
vim.o.wildignorecase = true
end
vim.o.shada = ""
vim.o.splitright = true
vim.o.timeoutlen = 2250
vim.o.hlsearch = false
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.swapfile = false
vim.o.tabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
vim.bo.softtabstop = 4
require("highlights")