Kakoune: Difference between revisions

imported>Nhey
No edit summary
imported>Flakebi
No edit summary
Line 2: Line 2:


== Configuration ==
== Configuration ==
Kakoune may be configured without use of the nix build system (simply add it to your system environment and see [https://github.com/mawww/kakoune#running]), or it may be configured using the <code>wrapKakoune</code> function defined in Nixpkgs[https://github.com/NixOS/nixpkgs/blob/c4f97342ba8ac84def72328616dd05d005bb4715/pkgs/top-level/all-packages.nix#L4514]:
Kakoune may be configured without use of the nix build system (simply add it to your system environment and see [https://github.com/mawww/kakoune#running]), or it may be configured using <code>kakoune.override</code> and <code>pkgs.kakounePlugins</code>:
<syntaxhighlight lang="nix>
<syntaxhighlight lang="nix>
let
let
Line 15: Line 15:
     });
     });
   in
   in
   wrapKakoune kakoune-unwrapped {
   kakoune.override {
     configure = {
     plugins = with kakounePlugins; [ config parinfer-rust ];
      plugins = [ config ];
    };
   };
   };
in
in
Line 25: Line 23:
}
}
</syntaxhighlight>
</syntaxhighlight>
User configuration can simply be added as a plugin as above.