This commit is contained in:
grechkagk-thinkpad 2026-02-01 16:42:22 +08:00
commit 36c66e33e6
17 changed files with 348 additions and 0 deletions

25
init.lua Normal file
View file

@ -0,0 +1,25 @@
vim.g.mapleader = " "
vim.g.maplocalleader = " "
vim.opt.backspace = "2"
vim.opt.laststatus = 2
vim.opt.autowrite = true
vim.opt.cursorline = true
vim.opt.autoread = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.shiftround = true
vim.opt.expandtab = true
vim.opt.number = true
vim.opt.relativenumber = true
require("config.lazy")
vim.keymap.set("n", "<leader>h", ":noh<CR>")
-- terminal
vim.keymap.set("t", "<Esc>", [[<C-\><C-n>]], { desc = "Exit terminal mode" })
vim.keymap.set("n", "<leader>t", ":tabnew<CR>", { desc = "Open tab" })