You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case this might be useful for others looking for a one-file kickstart-style setup, here's what I'm doing:
In ~/.config/nvim/init.lua:
localpath=vim.fn.stdpath('data') ..'/site/pack/paqs/start/paq-nvim'localfirst_install=falseifvim.fn.glob(path) =="" thenfirst_install=truevim.fn.system({ 'git', 'clone', 'https://github.com/savq/paq-nvim', path })
vim.cmd.packadd('paq-nvim')
endlocalpackages= {
'savq/paq-nvim',
-- your packages
}
localpaq=require('paq')
iffirst_installthenprint('Paq: first install, plugins being installed, if prompted hit Enter to continue.') endpaq(packages)
paq.install()
vim.api.nvim_create_autocmd('BufWritePost', {
command='silent PaqClean | silent PaqInstall',
group=vim.api.nvim_create_augroup('Paq', { clear=true }),
pattern=vim.fn.expand('$MYVIMRC'),
})
Don't know if it's worth adding to the docs or not, but just thought I'd add it here in case someone is looking how to do it. Feel free to point out mistakes I might have made in the above! Thanks.
The text was updated successfully, but these errors were encountered:
Benefit of this way, is there's no restart Neovim required. I can wipe out my packpath start nvim with this, it installs everything and I can work right away.
In case this might be useful for others looking for a one-file kickstart-style setup, here's what I'm doing:
In
~/.config/nvim/init.lua
:Don't know if it's worth adding to the docs or not, but just thought I'd add it here in case someone is looking how to do it. Feel free to point out mistakes I might have made in the above! Thanks.
The text was updated successfully, but these errors were encountered: