3
0
Fork 0
forked from mirrors/nixpkgs

vimPlugins.telescope-fzy-native-nvim: init at 2021-01-02

This commit is contained in:
José Luis Lafuente 2021-01-19 23:12:23 +01:00
parent 734ffbe483
commit 8a89b8789a
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
3 changed files with 39 additions and 0 deletions

View file

@ -3912,6 +3912,19 @@ let
meta.homepage = "https://github.com/nvim-telescope/telescope-fzf-writer.nvim/"; meta.homepage = "https://github.com/nvim-telescope/telescope-fzf-writer.nvim/";
}; };
telescope-fzy-native-nvim = buildVimPluginFrom2Nix {
pname = "telescope-fzy-native-nvim";
version = "2021-01-02";
src = fetchFromGitHub {
owner = "nvim-telescope";
repo = "telescope-fzy-native.nvim";
rev = "654dffd924b29fb9a9252dcbd63528b1498ac9fb";
sha256 = "01x9z3n03qharjw778cxb16gw1dsxzmsxph4xsbfy1avf21c6x9g";
fetchSubmodules = true;
};
meta.homepage = "https://github.com/nvim-telescope/telescope-fzy-native.nvim/";
};
telescope-nvim = buildVimPluginFrom2Nix { telescope-nvim = buildVimPluginFrom2Nix {
pname = "telescope-nvim"; pname = "telescope-nvim";
version = "2021-01-18"; version = "2021-01-18";

View file

@ -671,6 +671,31 @@ self: super: {
ln -s ${tabnine}/bin/TabNine $target/binaries/TabNine_$(uname -s) ln -s ${tabnine}/bin/TabNine $target/binaries/TabNine_$(uname -s)
''; '';
}); });
telescope-fzy-native-nvim = super.telescope-fzy-native-nvim.overrideAttrs (old: {
preFixup =
let
fzy-lua-native-path = "deps/fzy-lua-native";
fzy-lua-native =
stdenv.mkDerivation {
name = "fzy-lua-native";
src = "${old.src}/${fzy-lua-native-path}";
# remove pre-compiled binaries
preBuild = "rm -rf static/*";
installPhase = ''
install -Dm 444 -t $out/static static/*
install -Dm 444 -t $out/lua lua/*
'';
};
in
''
rm -rf $target/${fzy-lua-native-path}/*
ln -s ${fzy-lua-native}/static $target/${fzy-lua-native-path}/static
ln -s ${fzy-lua-native}/lua $target/${fzy-lua-native-path}/lua
'';
meta.platforms = stdenv.lib.platforms.all;
});
} // ( } // (
let let
nodePackageNames = [ nodePackageNames = [

View file

@ -407,6 +407,7 @@ nvim-lua/lsp_extensions.nvim
nvim-lua/plenary.nvim nvim-lua/plenary.nvim
nvim-lua/popup.nvim nvim-lua/popup.nvim
nvim-telescope/telescope-fzf-writer.nvim nvim-telescope/telescope-fzf-writer.nvim
nvim-telescope/telescope-fzy-native.nvim
nvim-telescope/telescope.nvim nvim-telescope/telescope.nvim
nvim-treesitter/completion-treesitter nvim-treesitter/completion-treesitter
nvim-treesitter/nvim-treesitter nvim-treesitter/nvim-treesitter