-- Leader key vim.g.mapleader = " " vim.g.maplocalleader = " " -- Better file reading vim.opt.autoread = true vim.opt.autowrite = true -- Cursorline vim.opt.cursorline = true -- Line numbers vim.opt.number = true vim.opt.relativenumber = true -- Breakindent vim.opt.breakindent = true -- Mouse vim.cmd([[ aunmenu PopUp.How-to\ disable\ mouse aunmenu PopUp.-1- ]]) vim.opt.mouse = "a" -- Scrolling vim.opt.scrolloff = 8 vim.opt.sidescrolloff = 8 -- Searching vim.opt.ignorecase = true vim.opt.smartcase = true -- System integration -- https://github.com/nvim-lua/kickstart.nvim/blob/7201dc480134f41dd1be1f8f9b8f8470aac82a3b/init.lua#L113-L119 vim.schedule(function() vim.opt.clipboard = "unnamedplus" end) vim.opt.swapfile = false vim.opt.undofile = true -- Tab settings vim.opt.expandtab = true vim.opt.shiftwidth = 2 vim.opt.tabstop = 2 -- Visuals vim.opt.laststatus = 3 vim.opt.showmode = false -- Handled by lualine vim.opt.signcolumn = "yes" -- Prevents shifting