modified structure
This commit is contained in:
33
lua/core/vim.lua
Normal file
33
lua/core/vim.lua
Normal 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
|
||||
})
|
||||
Reference in New Issue
Block a user