aboutsummaryrefslogtreecommitdiff
path: root/init.lua
blob: ce4cea65592a33b856a5555e79427cfc7132eb2b (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
54
55
56
57
58
59
60
61
62
63
local cfg = "/home/kdx/.config/nvim/"
dofile(cfg .. "map.lua")
dofile(cfg .. "plugs.lua")
dofile(cfg .. "treesitter.lua")
dofile(cfg .. "lsp.lua")
dofile(cfg .. "telescope.lua")

local indent = 8

vim.opt.list = true
vim.opt.listchars = "tab:│·"
vim.opt.background = "dark"
vim.opt.tabstop = indent
vim.opt.shiftwidth = indent
vim.opt.colorcolumn = "80"
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.mouse = "a"
vim.opt.laststatus = 2
vim.opt.hlsearch = true
vim.opt.incsearch = true
vim.opt.showmatch = true
vim.opt.autoindent = true
vim.opt.ttyfast = true
vim.opt.showmode = false

map("n", "<space>", ":noh<cr>")
map("n", ";F", ":Telescope find_files<cr>")
map("n", ";f", ":Telescope git_files<cr>")
map("n", ";g", ":Telescope live_grep<cr>")
map("n", ";b", ":Telescope buffers<cr>")
map("n", ";l", ":Telescope current_buffer_fuzzy_find<cr>")
map("n", ";t", ":!ctags -R --exclude=Makefile<cr>:Telescope tags<cr>")
map("n", ";42", ":CellularAutomaton make_it_rain<cr>")
map("n", ";69", ":CellularAutomaton game_of_life<cr>")

vim.g.tokyonight_style = "night"
vim.g.tokyonight_enable_italic = true
vim.cmd("colorscheme tokyonight-night")

require("lualine").setup({ options = { theme = "tokyonight" } })

local theme = require("alpha.themes.dashboard")
theme.section.header.val = {
	[[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]],
	[[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⡞⡏]],
	[[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⡲⠟⠉⠉⠀]],
	[[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡺⠗⠉⠀⠀⠀⠀⠀]],
	[[⠀⢀⣴⣾⣿⣶⣄⠀⠀⢀⡴⠚⠁⠀⠀⠀⠀⠀⠀⠀⠀]],
	[[⢠⣿⣿⣿⣿⣿⣿⡆⢺⣋⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]],
	[[⠈⢿⣿⣿⣿⠛⡻⣣⡿⢷⢁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]],
	[[⠀⠀⠯⠠⢖⡩⡪⠂⠠⠞⡸⣰⠀⠀⠀⠀⠀⠀⠀⠀⠀]],
	[[⠀⡠⣢⣴⠵⠋⠈⢭⢆⡉⢕⡣⠇⠀⠀⠀⠀⠀⠀⠀⠀]],
	[[⠀⠀⠋⠀⠀⠀⠀⠀⣄⡒⣄⣅⢖⢖⠀⠀⠀⠀⠀⠀⠀]],
	[[⠀⠀⠀⠀⠀⠀⢀⡼⠋⠁⠙⠉⠘⠛⢦⠀⠀⠀⠀⠀⠀]],
	[[⠀⠀⠀⠀⢠⡴⡏⠀⠀⠀⠀⠀⠀⠀⠈⢳⣄⠀⠀⠀⠀]],
	[[⠀⠀⠀⠀⢐⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⠅⠀⠀⠀]],
	[[⠀⠀⠀⠀⠀⠹⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⠃⠀⠀⠀]],
	[[⠀⠀⠀⠀⠀⠀⢻⡄⠀⠀⠀⠀⠀⠀⠀⣸⠇⠀⠀⠀⠀]],
	[[⠀⠀⠀⣄⡔⠞⠷⠦⠀⠀⠀⠀⠀⠀⣬⣽⡄⠀⠀⠀⠀]],
	[[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠁⠀⠀⠀]]
}
require("alpha").setup(theme.config)