1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 13:44:50 +00:00
nixpkgs/doc
Daniel Gorin 550389392a kakoune: rework plugin support
The previous implementation of plugin-support for the kakoune derivation
was based on generating, at build time, a `plugins.kak` file that would
source all .kak files in the list of plugins, and wrap the `kak` binary
in a script that would add some command-line arguments so that this
file gets loaded on start-up. The main problem with this approach
is that the plugins' code get executed *after* the user's configuration
file is loaded, so effectively one cannot automatically activate/configure
these plugins.

The idiomatic way of loading plugins is ensuring they end up installed
somwhere under `share/kak/autoload`. Because plugins are already being
packaged to have their code in `share/kak/autoload/plugins/<name-of-plugin>`,
we can obtain a derivation that includes the plugins simply by doing a
`symlinkJoin` of `kakoune-unwrapped` and all the requested plugins.

For this to work, we need to fix two issues:

  1. By default, kakoune makes `share/kak/autoload` a symbolic link to
     `share/kak/rc`, which contains all builtin definitions. We need
     to patch this to put the symlink under `share/kak/autoload/rc`, so that
     the join works.

  2. By default kakoune expects the `autoload` directory to be in
     `../share/kak/autoload` relative to the location of the `kak` binary.
     We need to set the `KAKOUNE_RUNTIME` to point the symlinked
     share/kak for this to work.
2020-11-01 14:35:49 +00:00
..
builders kakoune: rework plugin support 2020-11-01 14:35:49 +00:00
contributing A directory-category for terminal emulators 2020-10-28 10:22:39 -03:00
doc-support
functions
languages-frameworks vimPlugins: document update proces 2020-10-28 13:51:24 -07:00
old doc/*: editorconfig fixes 2020-07-31 15:06:53 +10:00
stdenv Revert "Merge #101508: libraw: 0.20.0 -> 0.20.2" 2020-10-25 09:41:51 +01:00
using doc: Improve code listings 2020-09-23 01:25:25 +02:00
.gitignore
default.nix
functions.xml
Makefile doc: fix MD_TARGETS 2020-07-18 14:23:25 +09:00
manual.xml doc: rename guide to 'Nixpkgs Manual' 2020-09-24 14:07:25 +02:00
overrides.css
preface.chapter.md
release-notes.xml
shell.nix
style.css