-- better ui ------------------------------------------------------------------ if pcall(require, "notify") then vim.notify = require("notify") end o.colorcolumn = { 80 } -- buffer o.scrolloff = 5 o.wrap = true -- wraping lines o.linebreak = true -- fix where line is wraped o.cursorline = true -- statusbar o.laststatus = 3 o.cmdheight = 1 o.showmode = false -- stop vim from showing mode (we have a statusbar) -- tabline o.showtabline = 2 -- status column o.signcolumn = 'yes:1' -- show gutter -- indents + tabs local tabwidth = 2 o.expandtab = true o.smarttab = true o.cindent = true o.autoindent = true o.tabstop = tabwidth o.shiftwidth = tabwidth o.softtabstop = tabwidth -- colorscheme o.termguicolors = true misc.colorscheme('mellow') -- better editing ------------------------------------------------------------- o.clipboard = 'unnamedplus' -- system clipboard o.splitkeep = "screen" -- keep same text on screen when spliting o.updatetime = 200 -- file saving ---------------------------------------------------------------- o.swapfile = false o.undofile = true o.confirm = true -- searching ------------------------------------------------------------------ o.ignorecase = true o.smartcase = true o.wrapscan = true o.showmatch = true o.incsearch = true -- wild menus ----------------------------------------------------------------- o.wildoptions = 'pum' o.pumblend = 3 o.pumheight = 20 o.wildignorecase = true o.wildignore = '*.o' -- netrw ---------------------------------------------------------------------- g.netrw_banner = 1 g.netrw_localcopydircmd = 'cp -r' g.netrw_winsize = 30 g.netrw_liststyle = 1 g.netrw_preview = 1