Kakoune: Difference between revisions
imported>Tobias.bora Add info about plugins |
m fix link syntax in introduction |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
[https://github.com/mawww/kakoune Kakoune] is a modal text editor that operates on selections. Unlike Vim's command-motion paradigme, text is first selected, then operated upon (a motion-command paradigme, if you will). This allows Kakoune to provide strong visual feedback and incremental results while requiring keystroke counts similar to that of Vim. More on the design of Kakoune can be found here [https://github.com/mawww/kakoune/blob/master/doc/design.asciidoc] and on https://kakoune.org. | |||
== 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 <code>kakoune.override</code> and <code>pkgs.kakounePlugins</code>: | 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= | <syntaxhighlight lang=nix> | ||
let | let | ||
myKakoune = | myKakoune = | ||
| Line 29: | Line 29: | ||
To install a plugin, you can either install it manually without bothering about nix, or install it as shown above in an override like: | To install a plugin, you can either install it manually without bothering about nix, or install it as shown above in an override like: | ||
<syntaxhighlight lang= | <syntaxhighlight lang=nix> | ||
let | let | ||
myKakoune = kakoune.override { | myKakoune = kakoune.override { | ||
| Line 41: | Line 41: | ||
You should be able to search through the list of plugins using for instance nix search (if you don't have flake enabled you may need to add <code>--experimental-features 'nix-command flakes'</code> in front of the nix command) : | You should be able to search through the list of plugins using for instance nix search (if you don't have flake enabled you may need to add <code>--experimental-features 'nix-command flakes'</code> in front of the nix command) : | ||
<syntaxhighlight> | <syntaxhighlight lang=console> | ||
$ nix search nixpkgs parinfer | $ nix search nixpkgs parinfer | ||
… | … | ||
| Line 49: | Line 49: | ||
If your plugin is not listed, you can add it manually using <code>pkgs.kakouneUtils.buildKakounePluginFrom2Nix</code>: | If your plugin is not listed, you can add it manually using <code>pkgs.kakouneUtils.buildKakounePluginFrom2Nix</code>: | ||
<syntaxhighlight lang= | <syntaxhighlight lang=nix> | ||
let | let | ||
myKakoune = | myKakoune = | ||
| Line 74: | Line 74: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Other fetchers can be used for source code hosted with different hosting services, as described in the Nixpkgs manual [https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers] (see the Nixpkgs repository for examples [https://github.com/NixOS/nixpkgs/blob/nixos-22.05/pkgs/applications/editors/kakoune/plugins/overrides.nix]). | |||
You can use the command-line tool <code>nix-prefetch-git $url</code> to get the SHA-256 of source distributions. | |||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:CLI Applications]] | |||
[[Category:Text Editor]] | |||