-- enable 24-bit color for nvim-notify vim.o.termguicolors = true -- Disable intro message on startup, or many other plugins will -- close this message on load, which may cause a flash of intro message. vim.opt.shortmess:append({ I = true }) vim.o.tabstop = 4 vim.o.shiftwidth = 0 vim.o.softtabstop = -1 vim.o.shiftround = true vim.o.expandtab = true vim.o.autoindent = true vim.o.smartindent = true vim.o.list = true vim.o.relativenumber = true vim.o.number = true vim.o.cursorline = true vim.o.ignorecase = true vim.o.smartcase = true vim.o.colorcolumn = "101" vim.g.mapleader = " " vim.g.maplocalleader = " " vim.keymap.set("n", "\\\\", "split", { silent = true }) vim.keymap.set("n", "||", "vsplit", { silent = true }) vim.keymap.set("n", "q", "wincmd q", { silent = true }) vim.keymap.set("n", "", "wincmd h", { silent = true }) vim.keymap.set("n", "", "wincmd j", { silent = true }) vim.keymap.set("n", "", "wincmd k", { silent = true }) vim.keymap.set("n", "", "wincmd l", { silent = true }) vim.keymap.set("n", "", "wincmd H", { silent = true }) vim.keymap.set("n", "", "wincmd J", { silent = true }) vim.keymap.set("n", "", "wincmd K", { silent = true }) vim.keymap.set("n", "", "wincmd L", { silent = true }) vim.keymap.set("n", "]b", "bnext", { silent = true }) vim.keymap.set("n", "[b", "bprevious", { silent = true }) vim.keymap.set("n", "c", "bdelete", { silent = true }) vim.keymap.set("n", "nh", "nohlsearch", { silent = true }) -- Use lazy.nvim as plugin manager, and load plugin's config local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.uv.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- latest stable release lazypath, }) end vim.opt.rtp:prepend(lazypath) require("lazy").setup("plugins")