Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0d8f43c40236
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ce3a2e6e4930
Choose a head ref
  • 3 commits
  • 5 files changed
  • 2 contributors

Commits on Nov 1, 2020

  1. 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.
    jcpetruzza committed Nov 1, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    5503893 View commit details
  2. kakoune: Fix :doc when using plugins

    So, kakoune takes the documentation shown for `:doc` from
    `$KAKOUNE_RUNTIME/share/kak/doc`. Unfortunately, it seems
    that it will ignore files that are symlinks. This is arguably
    a bug in kakoune, we workaround it for now by copying the
    content of the docfiles.
    jcpetruzza committed Nov 1, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    464804b View commit details
  3. Merge pull request #91792 from jcpetruzza/kakoune-plugins

    kakoune: rework plugin support
    kevincox authored Nov 1, 2020
    Copy the full SHA
    ce3a2e6 View commit details
Loading