vim.opt.background = 'light' vim.keymap.set({'n', 'v', 'o', 'i'}, '', 'set invpaste') vim.call "plug#begin" local Plug = vim.fn['plug#'] -- My preferred colour scheme Plug 'wimstefan/vim-artesanal' -- Git operations from within files Plug 'tpope/vim-fugitive' vim.call "plug#end" function hasPlug(plugin) return vim.g.plugs[plugin] ~= nil end function prequire(m) local ok, err = pcall(require, m) if not ok then return nil, err end return err end