Unclear errors in relation to `plug.kak`

Hi BD,

When one thing goes wrong in kakoune or plugins.kak it can give you additional chain errors that just aren’t there.

First with lua make sure nowhere in plugins.kak has this line:

plug "gustavo-hms/luar" %{
    require-module luar
}

or a duplication message will occur when using:

plug "gustavo-hms/luar" %{
    plug "gustavo-hms/peneira" %{
        require-module peneira
    }
}

Fix that up and the rest may settle down, also pays to look at the line/code above the reported error as it can often be the actual cause of your problems.

Its a start, hang in there and someone else will chime in with some more help/info for you.
@andreyorst is always about and willing to help out.

Bye :wave:


Hey BD this might solve the other issue,

kakhist is a sub-package of mru-files so go with one call only to mru-files and just do the require-module kakhist; kakhist-init thing in a config %{ block }.

Good luck, I would like to give kak-lsp a go but haven’t as yet so no help from me on that one.

this is helpful especially on a small monitor when doing :plug-list.

1 Like