kakoune setup

This commit is contained in:
Charlie Root 2024-08-09 12:57:56 +02:00
commit f0d14ea2b7
3 changed files with 19 additions and 5 deletions

View file

@ -5,13 +5,14 @@
...
}: let
inherit (config.modules.other.system) username;
cfg = config.modules.editors.kakoune;
cfg = config.modules.system.programs.editors.kakoune;
inherit (lib) mkIf mkEnableOption;
in {
imports = [./mappings.nix];
options.modules.editors.kakoune.enable = mkEnableOption "kakoune";
config.home-manager.users.${username}.programs.kakoune = mkIf cfg.enable {
enable = true;
package = pkgs.kakoune-unwrapped;
config = {
autoComplete = ["insert"];
autoReload = "yes";
@ -41,12 +42,24 @@ in {
statusLine = "bottom";
};
};
plugins = with pkgs.kakounePlugins; [
active-window-kak
auto-pairs-kak
byline-kak # ope
prelude-kak # dependency of byline
fzf-kak
powerline-kak
byline-kak
kakboard
kakoune-buffer-switcher
kakoune-buffers
kakoune-lsp
kakoune-rainbow
kakoune-registers
kakoune-vertical-selection
powerline-kak
quickscope-kak
smarttab-kak
zig-kak
];
# extraConfig = ./kakrc;
};

View file

@ -36,7 +36,7 @@ in {
*/
#TabsToolbar {visibility: collapse;}
/* #navigator-toolbox {visibility: collapse;}
/* #navigator-toolbox {visibility: collapse;}
browser {margin-right: -14px; margin-bottom: -14px;} */
'';
};
@ -181,6 +181,7 @@ in {
"media.av1.enabled" = true;
"gfx.x11-egl.force-enabled" = true;
"widget.dmabuf.force-enabled" = true;
"layers.acceleration.force-enabled" = true;
"browser.ctrlTab.sortByRecentlyUsed" = true;
# This makes websites prefer a dark theme (in theory)

View file

@ -17,7 +17,7 @@ Scope {
right: true
}
height: 30
height: 25
ClockWidget {
anchors.centerIn: parent