I’m trying to get kak-lsp
[0] up and running. I’ve installed kakoune
[1] by enabling it in Home Manager. According to kak-lsp
's documentation I should add
eval %sh{kak-lsp --kakoune -s $kak_session}
hook global WinSetOption filetype=(rust|python|go|javascript|typescript|c|cpp) %{
lsp-enable-window
}
to my ~/.config/kak/kakrc
file.
The relevant parts of my Kakoune
configuration looks like this
kakoune =
{
enable = true;
config =
{
hooks =
[
{
name = "WinSetOption";
option = "filetype=(javascript)";
commands = "lsp-enable-window";
}
];
};
plugins =
[
pkgs.kakounePlugins.kak-lsp
];
};
My problem is that I can’t find any information in the home-configuration.nix
manual page about how to add the eval %sh{kak-lsp --kakoune -s $kak_session}
line to the kakrc
file.[2]
Do any of you have any suggestions have any suggestion how I should solve this? Any tricks I can do? An option that I’ve totally missed? Let me know!
[0] GitHub - kak-lsp/kak-lsp: Kakoune Language Server Protocol Client
[1] https://kakoune.org/
[2] home-manager/kakoune.nix at db00b39a9abec04245486a01b236b8d9734c9ad0 · nix-community/home-manager · GitHub