vim.opt.number = true vim.opt.relativenumber = true vim.opt.confirm = true vim.opt.clipboard = "unnamedplus" vim.opt.splitbelow = true vim.opt.splitright = true vim.opt.showmode = false vim.opt.tabstop = 2 vim.opt.softtabstop = 2 vim.opt.shiftwidth = 2 vim.opt.expandtab = true vim.opt.smartindent = true vim.opt.swapfile = false vim.opt.termguicolors = true vim.g.mapleader = " " vim.g.maplocalleader = "," vim.opt.fillchars:append({ eob = " " }) vim.opt.laststatus = 3 vim.opt.signcolumn = "number" vim.opt.linebreak = true vim.opt.updatetime = 50 vim.opt.ignorecase = true vim.opt.mouse = "nvi" vim.api.nvim_create_autocmd("TextYankPost", { callback = function() vim.highlight.on_yank() end }) vim.keymap.set("n", "", "h") vim.keymap.set("n", "", "j") vim.keymap.set("n", "", "k") vim.keymap.set("n", "", "l") vim.keymap.set("n", "", "zz", { silent = true }) vim.keymap.set("n", "", "zz", { silent = true }) vim.keymap.set("n", "-", "vsp", { silent = true }) vim.keymap.set("n", "'", "sp", { silent = true }) -- Bootstrap lazy.nvim local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = "https://github.com/folke/lazy.nvim.git" local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) if vim.v.shell_error ~= 0 then vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { out, "WarningMsg" }, { "\nPress any key to exit..." }, }, true, {}) vim.fn.getchar() os.exit(1) end end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ spec = { { { import = "plugins" }, }, }, }) vim.keymap.set("t", "", "")