Closed hjhp closed 1 year ago
Ah yes... this seems to be a problem with the nvim_ghost#installer#install()
function. There's some bug in it.
To make the plugin work for now, manually execute :call nvim_ghost#installer#install()
after installing the plugin. I am very busy this week, so I won't be able to look at this bug till the weekend, sorry.
Thanks! This works now.
Just for future reference, I got it working with:
use {
'subnut/nvim-ghost.nvim',
}
and then running
:call nvim_ghost#installer#install()
I would love to know for sure if there's a way to get Packer.nvim to run this function automatically after install, for example would run
be applicable here?
use {
'subnut/nvim-ghost.nvim',
run = vim.cmd[[:call nvim_ghost#installer#install()]]
}
I'm not sure of this syntax or the validity of my reasoning, I'm very new to neovim and lua. I base this idea on wbthomason's example of "Plugins can have post-install/update hooks":
use {'iamcco/markdown-preview.nvim', run = 'cd app && yarn install', cmd = 'MarkdownPreview'}
I must have confused the syntax trying to translate your Plug example to Packer.nvim, could you please help?
In my config file I have:
On start, I get: