2022-07-21 02:19:32 +00:00
|
|
|
{ pkgs, ... }: {
|
2022-07-21 04:38:26 +00:00
|
|
|
home.packages = [ pkgs.kak-lsp ];
|
2022-07-04 14:46:52 +00:00
|
|
|
programs.kakoune = {
|
|
|
|
enable = true;
|
2022-07-21 04:38:26 +00:00
|
|
|
|
2022-07-21 02:19:32 +00:00
|
|
|
config = {
|
2022-07-21 04:38:26 +00:00
|
|
|
autoReload = "yes";
|
|
|
|
|
|
|
|
colorScheme = "tokyonight";
|
|
|
|
|
|
|
|
keyMappings = [
|
|
|
|
{
|
|
|
|
key = "<c-a-p>";
|
|
|
|
effect = ": fzf-mode<ret>";
|
|
|
|
mode = "normal";
|
|
|
|
docstring = "Open fzf-mode with ctrl-alt-p";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "<c-p>";
|
|
|
|
effect = ": fzf-mode<ret>f<ret>";
|
|
|
|
mode = "normal";
|
|
|
|
docstring = "Open fzf-mode file dialog with ctrl-p";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
hooks = [
|
|
|
|
{
|
|
|
|
name = "WinSetOption";
|
|
|
|
option = "filetype=(haskell)";
|
|
|
|
commands = ''
|
|
|
|
lsp-enable-window
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
numberLines.enable = true;
|
|
|
|
numberLines.highlightCursor = true;
|
|
|
|
numberLines.relative = true;
|
|
|
|
|
|
|
|
scrollOff.columns = 4;
|
|
|
|
scrollOff.lines = 2;
|
|
|
|
|
|
|
|
showMatching = true;
|
|
|
|
|
|
|
|
ui.enableMouse = true;
|
2022-07-21 02:19:32 +00:00
|
|
|
};
|
2022-07-21 04:38:26 +00:00
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
eval %sh{${pkgs.kak-lsp}/bin/kak-lsp --kakoune -s $kak_session}
|
|
|
|
powerline-start
|
|
|
|
'';
|
|
|
|
|
2022-07-21 02:19:32 +00:00
|
|
|
plugins = with pkgs.kakounePlugins; [
|
|
|
|
active-window-kak
|
|
|
|
auto-pairs-kak
|
|
|
|
fzf-kak
|
|
|
|
kak-lsp
|
|
|
|
kakboard
|
|
|
|
kakoune-state-save
|
|
|
|
kakoune-vertical-selection
|
2022-07-21 04:38:26 +00:00
|
|
|
powerline-kak
|
|
|
|
pkgs.tokyonight-kak
|
2022-07-21 02:19:32 +00:00
|
|
|
# needs luar
|
2022-07-21 04:38:26 +00:00
|
|
|
# pkgs.luar
|
|
|
|
# tabs-kak
|
2022-07-21 02:19:32 +00:00
|
|
|
];
|
2022-07-04 14:46:52 +00:00
|
|
|
};
|
|
|
|
}
|