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"; 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.elixir
pkgs.tv.vimPlugins.file-line pkgs.tv.vimPlugins.file-line
pkgs.tv.vimPlugins.fzf pkgs.tv.vimPlugins.fzf

View File

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

View File

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

View File

@ -1,7 +1,7 @@
with import <stockholm/lib>; with import <stockholm/lib>;
{ pkgs }: { 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 = '' "/syntax/haskell.vim".text = ''
syn region String start=+\[[[:alnum:]]*|+ end=+|]+ syn region String start=+\[[[:alnum:]]*|+ end=+|]+

View File

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

View File

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

View File

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