tv vim: rtp -> outPath

This commit is contained in:
tv 2022-12-05 15:10:15 +01:00
parent 6a82f29433
commit 54f82ea7cb
7 changed files with 10 additions and 6 deletions

View File

@ -13,7 +13,7 @@ let {
environment.variables.VIMINIT = ":so /etc/vimrc";
};
extra-runtimepath = concatMapStringsSep "," (pkg: "${pkg.rtp}") [
extra-runtimepath = pkgs.tv.vim.makeRuntimePath [
pkgs.tv.vimPlugins.elixir
pkgs.tv.vimPlugins.file-line
pkgs.tv.vimPlugins.fzf

View File

@ -2,6 +2,10 @@ with import <stockholm/lib>;
self: super: {
tv = super.tv // {
vim = {
makePlugin = outPath: outPath // { inherit outPath; };
makeRuntimePath = concatMapStringsSep "," (getAttr "outPath");
};
vimPlugins = mapNixDir (path: self.callPackage path {}) ./.;
};
}

View File

@ -1,7 +1,7 @@
with import <stockholm/lib>;
{ pkgs }:
(rtp: rtp // { inherit rtp; }) (pkgs.writeTextFile (let
pkgs.tv.vim.makePlugin (pkgs.writeTextFile (let
name = "hack";
in {
name = "vim-color-${name}-1.0.2";

View File

@ -1,7 +1,7 @@
with import <stockholm/lib>;
{ pkgs }:
(rtp: rtp // { inherit rtp; }) (pkgs.write "vim-syntax-nix-nested" {
pkgs.tv.vim.makePlugin (pkgs.write "vim-syntax-nix-nested" {
"/syntax/haskell.vim".text = ''
syn region String start=+\[[[:alnum:]]*|+ end=+|]+

View File

@ -1,6 +1,6 @@
{ pkgs }:
(rtp: rtp // { inherit rtp; }) (pkgs.writeTextFile (let
pkgs.tv.vim.makePlugin (pkgs.writeTextFile (let
name = "showsyntax";
in {
name = "vim-plugin-${name}-1.0.0";

View File

@ -1,6 +1,6 @@
{ pkgs }:
(rtp: rtp // { inherit rtp; }) (pkgs.write "vim-tv" {
pkgs.tv.vim.makePlugin (pkgs.write "vim-tv" {
#
# Haskell
#

View File

@ -1,7 +1,7 @@
with import <stockholm/lib>;
{ pkgs }:
(rtp: rtp // { inherit rtp; }) (pkgs.writeTextFile (let
pkgs.tv.vim.makePlugin (pkgs.writeTextFile (let
name = "vim";
in {
name = "vim-syntax-${name}-1.0.0";