feat: add basic settings.

This commit is contained in:
CronyAkatsuki 2025-10-20 15:11:26 +02:00
parent 1aef4c4230
commit bf598bd1d5
2 changed files with 33 additions and 0 deletions

2
init.lua Normal file
View file

@ -0,0 +1,2 @@
require("config.settings")
require("config.lazy")

31
lua/config/settings.lua Normal file
View file

@ -0,0 +1,31 @@
-- enable line number and relative line numbers
vim.opt.number = true
vim.opt.relativenumber = true
-- make splits open on bottom and right
vim.opt.splitbelow = true
vim.opt.splitright = true
-- disable line wrapping
vim.opt.wrap = false
-- setup tabs nicelly
vim.opt.expandtab = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
-- setup a nice scrolloff value
vim.opt.scrolloff = 20
-- make virtual edit work for blocks
vim.opt.virtualedit = "block"
-- make :s and others open a split
vim.opt.inccommand = "split"
-- ignore case
vim.opt.ignorecase = true
-- setup leader and local leader
vim.g.mapleader = " "
vim.g.maplocalleader = ";"