nukevim = require('nukevim'):new() nukevim:enableCaching() nukevim:initialize() nukevim:run() vim.api.nvim_create_autocmd("VimResized", { command = "lua nukevim:gui()" }) -- Should be able to do this with vim.api.nvim_add_user_command but -- that doesn't seem to exist for some reason vim.cmd[[ command! NukeVimInstall :lua nukevim:install() ]] -- Include a vimscript file so you can use all of this without having to migrate -- literally everything day 1. vim.cmd('source ' .. vim.env.MYVIMRC:sub(1, -9) .. 'startup.vim')