aboutsummaryrefslogtreecommitdiff
path: root/init.lua
blob: 34e9ad1ec79c305094d9937b6c67f0363db1c551 (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
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

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" } })

require("alpha").setup(require("alpha.themes.theta").config)