mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #119977 from malob/vimplugins-add-overrides
This commit is contained in:
commit
bdce7261ef
1 changed files with 65 additions and 36 deletions
|
@ -128,15 +128,23 @@ self: super: {
|
|||
'';
|
||||
});
|
||||
|
||||
completion-tabnine = super.completion-tabnine.overrideAttrs (old: {
|
||||
buildInputs = [ tabnine ];
|
||||
completion-buffers = super.completion-buffers.overrideAttrs (old: {
|
||||
dependencies = with self; [ completion-nvim ];
|
||||
});
|
||||
|
||||
completion-tabnine = super.completion-tabnine.overrideAttrs (old: {
|
||||
dependencies = with self; [ completion-nvim ];
|
||||
buildInputs = [ tabnine ];
|
||||
postFixup = ''
|
||||
mkdir $target/binaries
|
||||
ln -s ${tabnine}/bin/TabNine $target/binaries/TabNine_$(uname -s)
|
||||
'';
|
||||
});
|
||||
|
||||
completion-treesitter = super.completion-treesitter.overrideAttrs (old: {
|
||||
dependencies = with self; [ completion-nvim nvim-treesitter ];
|
||||
});
|
||||
|
||||
cpsm = super.cpsm.overrideAttrs (old: {
|
||||
buildInputs = [
|
||||
python3
|
||||
|
@ -162,11 +170,11 @@ self: super: {
|
|||
});
|
||||
|
||||
defx-nvim = super.defx-nvim.overrideAttrs (old: {
|
||||
dependencies = with super; [ nvim-yarp ];
|
||||
dependencies = with self; [ nvim-yarp ];
|
||||
});
|
||||
|
||||
deoplete-fish = super.deoplete-fish.overrideAttrs (old: {
|
||||
dependencies = with super; [ deoplete-nvim vim-fish ];
|
||||
dependencies = with self; [ deoplete-nvim vim-fish ];
|
||||
});
|
||||
|
||||
deoplete-go = super.deoplete-go.overrideAttrs (old: {
|
||||
|
@ -180,7 +188,7 @@ self: super: {
|
|||
});
|
||||
|
||||
deoplete-khard = super.deoplete-khard.overrideAttrs (old: {
|
||||
dependencies = [ self.deoplete-nvim ];
|
||||
dependencies = with self; [ deoplete-nvim ];
|
||||
passthru.python3Dependencies = ps: [ (ps.toPythonModule khard) ];
|
||||
meta = {
|
||||
description = "Address-completion for khard via deoplete";
|
||||
|
@ -200,11 +208,11 @@ self: super: {
|
|||
|
||||
ensime-vim = super.ensime-vim.overrideAttrs (old: {
|
||||
passthru.python3Dependencies = ps: with ps; [ sexpdata websocket_client ];
|
||||
dependencies = with super; [ vimproc-vim vimshell-vim super.self forms ];
|
||||
dependencies = with self; [ vimproc-vim vimshell-vim self.self forms ];
|
||||
});
|
||||
|
||||
forms = super.forms.overrideAttrs (old: {
|
||||
dependencies = with super; [ super.self ];
|
||||
dependencies = with self; [ self.self ];
|
||||
});
|
||||
|
||||
fruzzy =
|
||||
|
@ -243,7 +251,7 @@ self: super: {
|
|||
});
|
||||
|
||||
fzf-vim = super.fzf-vim.overrideAttrs (old: {
|
||||
dependencies = [ self.fzfWrapper ];
|
||||
dependencies = with self; [ fzfWrapper ];
|
||||
});
|
||||
|
||||
# Mainly used as a dependency for fzf-vim. Wraps the fzf program as a vim
|
||||
|
@ -261,6 +269,10 @@ self: super: {
|
|||
configurePhase = "cd plugins/nvim";
|
||||
});
|
||||
|
||||
gitsigns-nvim = super.gitsigns-nvim.overrideAttrs (old: {
|
||||
dependencies = with self; [ plenary-nvim ];
|
||||
});
|
||||
|
||||
jedi-vim = super.jedi-vim.overrideAttrs (old: {
|
||||
# checking for python3 support in vim would be neat, too, but nobody else seems to care
|
||||
buildInputs = [ python3.pkgs.jedi ];
|
||||
|
@ -320,7 +332,7 @@ self: super: {
|
|||
});
|
||||
|
||||
lf-vim = super.lf-vim.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-floaterm ];
|
||||
dependencies = with self; [ vim-floaterm ];
|
||||
});
|
||||
|
||||
meson = buildVimPluginFrom2Nix {
|
||||
|
@ -339,32 +351,32 @@ self: super: {
|
|||
});
|
||||
|
||||
ncm2 = super.ncm2.overrideAttrs (old: {
|
||||
dependencies = with super; [ nvim-yarp ];
|
||||
dependencies = with self; [ nvim-yarp ];
|
||||
});
|
||||
|
||||
ncm2-jedi = super.ncm2-jedi.overrideAttrs (old: {
|
||||
dependencies = with super; [ nvim-yarp ncm2 ];
|
||||
dependencies = with self; [ nvim-yarp ncm2 ];
|
||||
passthru.python3Dependencies = ps: with ps; [ jedi ];
|
||||
});
|
||||
|
||||
ncm2-neoinclude = super.ncm2-neoinclude.overrideAttrs (old: {
|
||||
dependencies = with super; [ neoinclude-vim ];
|
||||
dependencies = with self; [ neoinclude-vim ];
|
||||
});
|
||||
|
||||
ncm2-neosnippet = super.ncm2-neosnippet.overrideAttrs (old: {
|
||||
dependencies = with super; [ neosnippet-vim ];
|
||||
dependencies = with self; [ neosnippet-vim ];
|
||||
});
|
||||
|
||||
ncm2-syntax = super.ncm2-syntax.overrideAttrs (old: {
|
||||
dependencies = with super; [ neco-syntax ];
|
||||
dependencies = with self; [ neco-syntax ];
|
||||
});
|
||||
|
||||
ncm2-ultisnips = super.ncm2-ultisnips.overrideAttrs (old: {
|
||||
dependencies = with super; [ ultisnips ];
|
||||
dependencies = with self; [ ultisnips ];
|
||||
});
|
||||
|
||||
nvim-lsputils = super.nvim-lsputils.overrideAttrs (old: {
|
||||
dependencies = with super; [ popfix ];
|
||||
dependencies = with self; [ popfix ];
|
||||
});
|
||||
|
||||
# Usage:
|
||||
|
@ -396,7 +408,7 @@ self: super: {
|
|||
};
|
||||
|
||||
skim-vim = super.skim-vim.overrideAttrs (old: {
|
||||
dependencies = [ self.skim ];
|
||||
dependencies = with self; [ skim ];
|
||||
});
|
||||
|
||||
sql-nvim = super.sql-nvim.overrideAttrs (old: {
|
||||
|
@ -436,10 +448,15 @@ self: super: {
|
|||
});
|
||||
|
||||
telescope-frecency-nvim = super.telescope-frecency-nvim.overrideAttrs (old: {
|
||||
dependencies = [ self.sql-nvim ];
|
||||
dependencies = with self; [ sql-nvim telescope-nvim ];
|
||||
});
|
||||
|
||||
telescope-fzf-writer-nvim = super.telescope-fzf-writer-nvim.overrideAttrs (old: {
|
||||
dependencies = with self; [ telescope-nvim ];
|
||||
});
|
||||
|
||||
telescope-fzy-native-nvim = super.telescope-fzy-native-nvim.overrideAttrs (old: {
|
||||
dependencies = with self; [ telescope-nvim ];
|
||||
preFixup =
|
||||
let
|
||||
fzy-lua-native-path = "deps/fzy-lua-native";
|
||||
|
@ -463,6 +480,18 @@ self: super: {
|
|||
meta.platforms = lib.platforms.all;
|
||||
});
|
||||
|
||||
telescope-nvim = super.telescope-nvim.overrideAttrs (old: {
|
||||
dependencies = with self; [ plenary-nvim popup-nvim ];
|
||||
});
|
||||
|
||||
telescope-symbols-nvim = super.telescope-symbols-nvim.overrideAttrs (old: {
|
||||
dependencies = with self; [ telescope-nvim ];
|
||||
});
|
||||
|
||||
telescope-z-nvim = super.telescope-z-nvim.overrideAttrs (old: {
|
||||
dependencies = with self; [ telescope-nvim ];
|
||||
});
|
||||
|
||||
unicode-vim =
|
||||
let
|
||||
unicode-data = fetchurl {
|
||||
|
@ -490,23 +519,23 @@ self: super: {
|
|||
});
|
||||
|
||||
vim-addon-actions = super.vim-addon-actions.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||
dependencies = with self; [ vim-addon-mw-utils tlib_vim ];
|
||||
});
|
||||
|
||||
vim-addon-async = super.vim-addon-async.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-signs ];
|
||||
dependencies = with self; [ vim-addon-signs ];
|
||||
});
|
||||
|
||||
vim-addon-background-cmd = super.vim-addon-background-cmd.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-mw-utils ];
|
||||
dependencies = with self; [ vim-addon-mw-utils ];
|
||||
});
|
||||
|
||||
vim-addon-completion = super.vim-addon-completion.overrideAttrs (old: {
|
||||
dependencies = with super; [ tlib_vim ];
|
||||
dependencies = with self; [ tlib_vim ];
|
||||
});
|
||||
|
||||
vim-addon-goto-thing-at-cursor = super.vim-addon-goto-thing-at-cursor.overrideAttrs (old: {
|
||||
dependencies = with super; [ tlib_vim ];
|
||||
dependencies = with self; [ tlib_vim ];
|
||||
});
|
||||
|
||||
vim-addon-manager = super.vim-addon-manager.overrideAttrs (old: {
|
||||
|
@ -514,11 +543,11 @@ self: super: {
|
|||
});
|
||||
|
||||
vim-addon-mru = super.vim-addon-mru.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-other vim-addon-mw-utils ];
|
||||
dependencies = with self; [ vim-addon-other vim-addon-mw-utils ];
|
||||
});
|
||||
|
||||
vim-addon-nix = super.vim-addon-nix.overrideAttrs (old: {
|
||||
dependencies = with super; [
|
||||
dependencies = with self; [
|
||||
vim-addon-completion
|
||||
vim-addon-goto-thing-at-cursor
|
||||
vim-addon-errorformats
|
||||
|
@ -529,23 +558,23 @@ self: super: {
|
|||
});
|
||||
|
||||
vim-addon-sql = super.vim-addon-sql.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-completion vim-addon-background-cmd tlib_vim ];
|
||||
dependencies = with self; [ vim-addon-completion vim-addon-background-cmd tlib_vim ];
|
||||
});
|
||||
|
||||
vim-addon-syntax-checker = super.vim-addon-syntax-checker.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||
dependencies = with self; [ vim-addon-mw-utils tlib_vim ];
|
||||
});
|
||||
|
||||
vim-addon-toggle-buffer = super.vim-addon-toggle-buffer.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||
dependencies = with self; [ vim-addon-mw-utils tlib_vim ];
|
||||
});
|
||||
|
||||
vim-addon-xdebug = super.vim-addon-xdebug.overrideAttrs (old: {
|
||||
dependencies = with super; [ webapi-vim vim-addon-mw-utils vim-addon-signs vim-addon-async ];
|
||||
dependencies = with self; [ webapi-vim vim-addon-mw-utils vim-addon-signs vim-addon-async ];
|
||||
});
|
||||
|
||||
vim-bazel = super.vim-bazel.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-maktaba ];
|
||||
dependencies = with self; [ vim-maktaba ];
|
||||
});
|
||||
|
||||
vim-beancount = super.vim-beancount.overrideAttrs (old: {
|
||||
|
@ -593,7 +622,7 @@ self: super: {
|
|||
});
|
||||
|
||||
vim-codefmt = super.vim-codefmt.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-maktaba ];
|
||||
dependencies = with self; [ vim-maktaba ];
|
||||
});
|
||||
|
||||
vim-dasht = super.vim-dasht.overrideAttrs (old: {
|
||||
|
@ -604,7 +633,7 @@ self: super: {
|
|||
});
|
||||
|
||||
vim-easytags = super.vim-easytags.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-misc ];
|
||||
dependencies = with self; [ vim-misc ];
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# https://github.com/xolox/vim-easytags/pull/170 fix version detection for universal-ctags
|
||||
|
@ -649,7 +678,7 @@ self: super: {
|
|||
});
|
||||
|
||||
vim-gist = super.vim-gist.overrideAttrs (old: {
|
||||
dependencies = with super; [ webapi-vim ];
|
||||
dependencies = with self; [ webapi-vim ];
|
||||
});
|
||||
|
||||
vim-grammarous = super.vim-grammarous.overrideAttrs (old: {
|
||||
|
@ -713,7 +742,7 @@ self: super: {
|
|||
});
|
||||
|
||||
vim-snipmate = super.vim-snipmate.overrideAttrs (old: {
|
||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||
dependencies = with self; [ vim-addon-mw-utils tlib_vim ];
|
||||
});
|
||||
|
||||
vim-stylish-haskell = super.vim-stylish-haskell.overrideAttrs (old: {
|
||||
|
@ -751,7 +780,7 @@ self: super: {
|
|||
pname = "vim2nix";
|
||||
version = "1.0";
|
||||
src = ./vim2nix;
|
||||
dependencies = with super; [ vim-addon-manager ];
|
||||
dependencies = with self; [ vim-addon-manager ];
|
||||
};
|
||||
|
||||
vimacs = super.vimacs.overrideAttrs (old: {
|
||||
|
@ -791,7 +820,7 @@ self: super: {
|
|||
});
|
||||
|
||||
vimshell-vim = super.vimshell-vim.overrideAttrs (old: {
|
||||
dependencies = with super; [ vimproc-vim ];
|
||||
dependencies = with self; [ vimproc-vim ];
|
||||
});
|
||||
|
||||
YankRing-vim = super.YankRing-vim.overrideAttrs (old: {
|
||||
|
|
Loading…
Reference in a new issue