-- set leader keys vim.keymap.set("", "", "", opts) vim.g.mapleader = " " vim.g.maplocalleader = " " -- set termguicolors vim.opt.termguicolors = true -- transparent background vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) vim.api.nvim_set_hl(0, "FloatBorder", { bg = "none" }) vim.api.nvim_set_hl(0, "Pmenu", { bg = "none" }) vim.api.nvim_set_hl(0, "Terminal", { bg = "none" }) vim.api.nvim_set_hl(0, "EndOfBuffer", { bg = "none" }) vim.api.nvim_set_hl(0, "FoldColumn", { bg = "none" }) vim.api.nvim_set_hl(0, "Folded", { bg = "none" }) vim.api.nvim_set_hl(0, "SignColumn", { bg = "none" }) vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" }) vim.api.nvim_set_hl(0, "WhichKeyFloat", { bg = "none" }) vim.api.nvim_set_hl(0, "TelescopeBorder", { bg = "none" }) vim.api.nvim_set_hl(0, "TelescopeNormal", { bg = "none" }) vim.api.nvim_set_hl(0, "TelescopePromptBorder", { bg = "none" }) vim.api.nvim_set_hl(0, "TelescopePromptTitle", { bg = "none" }) -- search options vim.opt.smartcase = true vim.opt.ignorecase = true vim.opt.hlsearch = true vim.opt.incsearch = true -- evil mouse vim.opt.mouse = 'a' -- better indentations vim.opt.autoindent = true vim.opt.smartindent = true vim.opt.breakindent = true -- tab defaults vim.opt.expandtab = true vim.opt.shiftwidth = 2 vim.opt.softtabstop = 2 vim.opt.tabstop = 2 -- use undofile not swap/backup vim.opt.undofile = true vim.opt.swapfile = false vim.opt.backup = false vim.opt.writebackup = false -- use system clipboard vim.opt.clipboard = "unnamedplus" -- use more space for cmd vim.opt.cmdheight = 2 -- cmp options vim.opt.completeopt = { "menuone", "noselect" } -- makes `` be visible in markdown files vim.opt.conceallevel = 0 -- set file encoding vim.opt.fileencoding = "utf-8" -- don't show mode vim.opt.showmode = false -- always show tabs vim.opt.showtabline = 2 -- chose split directions vim.opt.splitbelow = true vim.opt.splitright = true -- less fast timeout vim.opt.timeoutlen = 1000 -- faster updates vim.opt.updatetime = 300 -- numbered lines vim.opt.number = true vim.opt.relativenumber = true vim.opt.numberwidth = 2 -- sign column vim.opt.signcolumn = "yes" -- no wrapping vim.opt.wrap = false -- make scrolling more better vim.opt.scrolloff = 8 vim.opt.sidescrolloff = 8