-- from tutorial, needs research vim.opt.backspace = '2' vim.opt.showcmd = true vim.opt.laststatus = 2 --vim.opt.autowrite = true -- general look and feel vim.opt.cursorline = true vim.opt.cursorcolumn = true vim.opt.scrolloff = 5 vim.opt.colorcolumn = "81" -- buffers vim.opt.autoread = true vim.opt.wildmode = 'longest,list' vim.opt.ttyfast = true --vim.opt.pastetoggle = '' -- formatting vim.opt.expandtab = true vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 vim.opt.shiftround = true vim.opt.autoindent = true vim.opt.list = true vim.opt.listchars = 'eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:·' vim.opt.smartindent = true vim.opt.wrap = false -- ERROR vim.opt.smartindend = true -- ERROR vim.opt.nowrap = true -- side column stuff vim.opt.nu = true vim.opt.signcolumn = 'yes' -- searching vim.opt.ignorecase = true vim.opt.smartcase = true vim.opt.incsearch = true vim.opt.hlsearch = true vim.opt.wildignorecase = true -- running interactive shell commands vim.opt.shellcmdflag = '-ic' -- folding vim.opt.foldmethod = 'indent' vim.opt.foldcolumn = '1' vim.opt.foldlevel = 99 vim.opt.foldlevelstart = 99 vim.opt.foldenable = true -- colorscheme vim.cmd.colorscheme('gruvbox') vim.opt.background = 'dark' --vim.opt.foldlevelstart=99 --vim.opt.foldlevel=99 -- --vim.opt.foldmethod = 'expr' --vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()" --vim.opt.foldtext = "v:lua.vim.treesitter.foldtext()"