Open Rope-a-dope opened 4 days ago
Apologies in advance, but it may be a bit before I can properly get to this. I'm currently in the process of moving, so things are quite busy right now.
One thing that stood out immediately, though, is that that's not how you're supposed to declare plugins in your kakrc. Taking kak-lsp
as an example, what you're supposed to do is the following:
bundle kak-lsp https://github.com/kak-lsp/kak-lsp %{
# Any immediate configuration would go here
hook global WinSetOption filetype=(rust|python|javascript|typescript) %{
lsp-enable-window
}
}
# Since kak-lsp has a compilation step, we need to do this too
bundle-install-hook kak-lsp %{
cargo install --locked --force --path .
}
Once you save this, reload and run bundle-install
to install the plugin.
With this, you don't even need the eval %sh{kak-lsp --kakoune -s $kak_session}
in your kakrc, as that just loads the .kak files from the plugin, something kak-bundle already does.
There seem to be a few more issues as well, but I'll need to address those when I have more time.
Apologies in advance, but it may be a bit before I can properly get to this. I'm currently in the process of moving, so things are quite busy right now.
One thing that stood out immediately, though, is that that's not how you're supposed to declare plugins in your kakrc. Taking
kak-lsp
as an example, what you're supposed to do is the following:bundle kak-lsp https://github.com/kak-lsp/kak-lsp %{ # Any immediate configuration would go here hook global WinSetOption filetype=(rust|python|javascript|typescript) %{ lsp-enable-window } } # Since kak-lsp has a compilation step, we need to do this too bundle-install-hook kak-lsp %{ cargo install --locked --force --path . }
Once you save this, reload and run
bundle-install
to install the plugin.With this, you don't even need the
eval %sh{kak-lsp --kakoune -s $kak_session}
in your kakrc, as that just loads the .kak files from the plugin, something kak-bundle already does.There seem to be a few more issues as well, but I'll need to address those when I have more time.
Thank you so much for your quick reply. Really appreciate your help! Hope your move goes well.
First, thank you so much for your contribution! I initially used plug.kak to install plugins, but ran into a problem where a wrong user name for github is remembered and I could't figure out how to clear that. Then found kak-bundle at the bottom page. Followed the instruction, but couldn't install any plugin. Is there anything wrong in my kakrc below?
Also, all kakoune plugins by Andrey Listopadov are archived now. Do you think it is a good idea to use them?
~/.config/kak/kakrc