Merge pull request #173312 from teto/vim-add-checks

vim add checks
This commit is contained in:
Matthieu Coudron 2022-05-27 11:34:48 +02:00 committed by GitHub
commit bd4e0644db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 2 deletions

View File

@ -2143,7 +2143,7 @@ final: prev:
meta.homepage = "https://github.com/nvim-lua/diagnostic-nvim/";
};
diffview-nvim = buildVimPluginFrom2Nix {
diffview-nvim = buildNeovimPluginFrom2Nix {
pname = "diffview.nvim";
version = "2022-05-09";
src = fetchFromGitHub {
@ -4666,6 +4666,18 @@ final: prev:
meta.homepage = "https://github.com/RRethy/nvim-base16/";
};
nvim-biscuits = buildVimPluginFrom2Nix {
pname = "nvim-biscuits";
version = "2021-11-12";
src = fetchFromGitHub {
owner = "code-biscuits";
repo = "nvim-biscuits";
rev = "15a0cb1273bd36d5a734210cdc3406fb4bcfb733";
sha256 = "15incx76ps8k4bra3s6ml66ckjhzjgbc7q2njs61yzfg46vdbhsd";
};
meta.homepage = "https://github.com/code-biscuits/nvim-biscuits/";
};
nvim-bqf = buildVimPluginFrom2Nix {
pname = "nvim-bqf";
version = "2022-04-30";

View File

@ -230,6 +230,13 @@ self: super: {
};
});
diffview-nvim = super.diffview-nvim.overrideAttrs (oa: {
dependencies = with self; [ plenary-nvim ];
doInstallCheck = true;
nvimRequireCheck = "diffview";
});
direnv-vim = super.direnv-vim.overrideAttrs (oa: {
preFixup = oa.preFixup or "" + ''
substituteInPlace $out/autoload/direnv.vim \
@ -316,6 +323,10 @@ self: super: {
configurePhase = "cd plugins/nvim";
});
gitlinker-nvim = super.gitlinker-nvim.overrideAttrs (old: {
dependencies = with self; [ plenary-nvim ];
});
gitsigns-nvim = super.gitsigns-nvim.overrideAttrs (old: {
dependencies = with self; [ plenary-nvim ];
});
@ -526,6 +537,10 @@ self: super: {
});
});
octo-nvim = super.octo-nvim.overrideAttrs (old: {
dependencies = with self; [ telescope-nvim plenary-nvim ];
});
onehalf = super.onehalf.overrideAttrs (old: {
configurePhase = "cd vim";
});

View File

@ -116,7 +116,13 @@ class VimEditor(pluginupdate.Editor):
def main():
global luaPlugins
luaPlugins = run_nix_expr(GET_PLUGINS_LUA)
# whitelist
luaPlugins = run_nix_expr(GET_PLUGINS_LUA) + [
"diffview-nvim",
"marks-nvim",
"nvim-biscuits"
]
editor = VimEditor("vim", ROOT, GET_PLUGINS)
parser = editor.create_parser()

View File

@ -393,6 +393,7 @@ https://github.com/catppuccin/nvim/,,catppuccin-nvim
https://github.com/nathanmsmith/nvim-ale-diagnostic/,,
https://github.com/windwp/nvim-autopairs/,,
https://github.com/RRethy/nvim-base16/,,
https://github.com/code-biscuits/nvim-biscuits/,HEAD,
https://github.com/kevinhwang91/nvim-bqf/,,
https://github.com/ojroques/nvim-bufdel/,,
https://github.com/roxma/nvim-cm-racer/,,