feat: config

This commit is contained in:
hexlocation 2025-05-12 07:48:47 +02:00
commit d47035b8c7
11 changed files with 421 additions and 0 deletions

34
init.lua Normal file
View file

@ -0,0 +1,34 @@
require("hex.installer")
require("hex.keymaps")
vim.g.mapleader = " "
local opt = vim.opt
opt.nu = true
opt.relativenumber = true
opt.tabstop = 4
opt.softtabstop = 4
opt.shiftwidth = 4
opt.expandtab = true
opt.smartindent = true
opt.swapfile = false
opt.backup = false
-- thanks primeagen, for this awesome feature i did not know about yet lol
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
opt.undofile = true
opt.hlsearch = true
opt.incsearch = true
opt.termguicolors = true
opt.scrolloff = 8
opt.updatetime = 50
opt.colorcolumn = "80"