modified structure

This commit is contained in:
2025-09-19 00:36:56 +02:00
parent 0ec83088ff
commit 8037b20d9c
14 changed files with 201 additions and 232 deletions

33
lua/core/vim.lua Normal file
View File

@@ -0,0 +1,33 @@
local config = require("config").vim
-- Options
local options = config.options
vim.opt.guicursor = ""
vim.opt.number = options.line_numbers.enabled
vim.opt.relativenumber = options.line_numbers.relative
vim.opt.shiftwidth = options.tab_size
vim.g.mapleader = options.leader
vim.g.maplocalleader = options.leader
vim.opt.clipboard = "unnamedplus"
-- Mappings
local mappings = config.mappings
vim.keymap.set("i", mappings.undo, "<C-o>:undo<CR>", {
desc = "Undo last edit",
noremap = true,
silent = true
})
vim.keymap.set("i", mappings.redo, "<C-o>:redo<CR>", {
desc = "Redo last edit",
noremap = true,
silent = true
})