J2WGYRJTE4TS43IQD4T4KIWP2QTXVM4XLI2LKHCUJTDRMOUQKKVQC
{ pkgs, ... }: {
home.packages = [
pkgs.kakoune
];
programs.kakoune = {
enable = true;
plugins = [ pkgs.kak-lsp ];
config = {
indentWidth = 2;
numberLines = {
enable = true;
highlightCursor = true;
};
hooks = [
{
name = "BufWritePre";
options = ".*";
commands = "lsp-formatting";
}
];
keyMappings = [
{
mode = "user";
docstring = "LSP Mode";
key = "l";
effect = ": enter-user-mode lsp<ret>";
}
];
showWhitespace.enable = true;
};
extraConfig = ''
eval %sh{kak-lsp --kakoune -s $kak_session} # Not needed if you load it with plug.kak.
lsp-enable
'';
};
}