local opt = vim.opt -- 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) -- Setup lazy.nvim require("lazy").setup({ spec = { { import = "plugins" }, }, install = { colorscheme = { "habamax" } }, checker = { enabled = true }, }) -- Load core settings opt.hlsearch = false -- turn off highlight on search opt.relativenumber = true --Make relative number default opt.updatetime = 50 --Decrease update time opt.clipboard = 'unnamedplus' -- Access system clipboard opt.laststatus = 3 -- Global status line opt.swapfile = false vim.opt_local.conceallevel = 2 vim.opt.inccommand = 'split' -- Time in milliseconds to wait for a mapped sequence to complete. opt.timeoutlen = 300 opt.scrolloff = 10 -- Lines of context opt.expandtab = true opt.smarttab = true opt.textwidth = 0 opt.autoindent = true opt.shiftwidth = 2 opt.tabstop = 2 opt.softtabstop = 2 opt.guifont = "Iosevka Nerd Font Mono" vim.keymap.set("n", "", "zz") vim.keymap.set("n", "", "zz") vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "N", "Nzzzv") vim.keymap.set("x", "p", [["_dP]]) vim.keymap.set({"n", "v"}, "y", [["+y]]) vim.keymap.set("n", "Y", [["+Y]]) vim.keymap.set({"n", "v"}, "d", [["_d]]) vim.keymap.set("n", "Q", "") vim.keymap.set("n", "", "") vim.keymap.set("i", "jk", "")