diff --git a/maintainers/scripts/pluginupdate-py/pluginupdate.py b/maintainers/scripts/pluginupdate-py/pluginupdate.py index afe60069dd29..e37e82fef3e7 100644 --- a/maintainers/scripts/pluginupdate-py/pluginupdate.py +++ b/maintainers/scripts/pluginupdate-py/pluginupdate.py @@ -4,7 +4,7 @@ # - pkgs/development/lua-modules/updater/updater.py # format: -# $ nix run nixpkgs#black maintainers/scripts/pluginupdate.py +# $ nix run nixpkgs#ruff maintainers/scripts/pluginupdate.py # type-check: # $ nix run nixpkgs#python3.pkgs.mypy maintainers/scripts/pluginupdate.py # linted: @@ -142,7 +142,7 @@ class Repo: return loaded def prefetch(self, ref: Optional[str]) -> str: - print("Prefetching %s", self.uri) + log.info("Prefetching %s", self.uri) loaded = self._prefetch(ref) return loaded["sha256"] @@ -195,7 +195,7 @@ class RepoGitHub(Repo): xml = req.read() # Filter out illegal XML characters - illegal_xml_regex = re.compile(b"[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F]") + illegal_xml_regex = re.compile(b"[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]") xml = illegal_xml_regex.sub(b"", xml) root = ET.fromstring(xml) @@ -256,13 +256,7 @@ class PluginDesc: @property def name(self): - if self.alias is None: - return self.repo.name - else: - return self.alias - - def __lt__(self, other): - return self.repo.name < other.repo.name + return self.alias or self.repo.name @staticmethod def load_from_csv(config: FetchConfig, row: Dict[str, str]) -> "PluginDesc": @@ -270,7 +264,12 @@ class PluginDesc: branch = row["branch"] repo = make_repo(row["repo"], branch.strip()) repo.token = config.github_token - return PluginDesc(repo, branch.strip(), row["alias"]) + return PluginDesc( + repo, + branch.strip(), + # alias is usually an empty string + row["alias"] if row["alias"] else None, + ) @staticmethod def load_from_string(config: FetchConfig, line: str) -> "PluginDesc": @@ -328,12 +327,11 @@ def load_plugins_from_csv( return plugins - def run_nix_expr(expr, nixpkgs: str, **args): - ''' + """ :param expr nix expression to fetch current plugins :param nixpkgs Path towards a nixpkgs checkout - ''' + """ with CleanEnvironment(nixpkgs) as nix_path: cmd = [ "nix", @@ -382,16 +380,14 @@ class Editor: fetch_config = FetchConfig(args.proc, args.github_token) editor = self for plugin_line in args.add_plugins: - log.debug("using plugin_line", plugin_line) + log.debug("using plugin_line %s", plugin_line) pdesc = PluginDesc.load_from_string(fetch_config, plugin_line) - log.debug("loaded as pdesc", pdesc) + log.debug("loaded as pdesc %s", pdesc) append = [pdesc] editor.rewrite_input( fetch_config, args.input_file, editor.deprecated, append=append ) - plugin, _ = prefetch_plugin( - pdesc, - ) + plugin, _ = prefetch_plugin(pdesc) autocommit = not args.no_commit if autocommit: commit( @@ -406,9 +402,9 @@ class Editor: # Expects arguments generated by 'update' subparser def update(self, args): """CSV spec""" - print("the update member function should be overriden in subclasses") + print("the update member function should be overridden in subclasses") - def get_current_plugins(self, nixpkgs) -> List[Plugin]: + def get_current_plugins(self, nixpkgs: str) -> List[Plugin]: """To fill the cache""" data = run_nix_expr(self.get_plugins, nixpkgs) plugins = [] @@ -440,6 +436,7 @@ class Editor: plugins, redirects = check_results(results) + plugins = sorted(plugins, key=lambda v: v[1].normalized_name) self.generate_nix(plugins, outfile) return redirects @@ -559,6 +556,7 @@ class Editor: parser = self.create_parser() args = parser.parse_args() command = args.command or "update" + logging.basicConfig() log.setLevel(LOG_LEVELS[args.debug]) log.info("Chose to run command: %s", command) self.nixpkgs = args.nixpkgs @@ -591,25 +589,24 @@ def prefetch_plugin( p: PluginDesc, cache: "Optional[Cache]" = None, ) -> Tuple[Plugin, Optional[Repo]]: - repo, branch, alias = p.repo, p.branch, p.alias - name = alias or p.repo.name commit = None - log.info(f"Fetching last commit for plugin {name} from {repo.uri}@{branch}") - commit, date = repo.latest_commit() + log.info(f"Fetching last commit for plugin {p.name} from {p.repo.uri}@{p.branch}") + commit, date = p.repo.latest_commit() + cached_plugin = cache[commit] if cache else None if cached_plugin is not None: - log.debug("Cache hit !") - cached_plugin.name = name + log.debug(f"Cache hit for {p.name}!") + cached_plugin.name = p.name cached_plugin.date = date - return cached_plugin, repo.redirect + return cached_plugin, p.repo.redirect - has_submodules = repo.has_submodules() - log.debug(f"prefetch {name}") - sha256 = repo.prefetch(commit) + has_submodules = p.repo.has_submodules() + log.debug(f"prefetch {p.name}") + sha256 = p.repo.prefetch(commit) return ( - Plugin(name, commit, has_submodules, sha256, date=date), - repo.redirect, + Plugin(p.name, commit, has_submodules, sha256, date=date), + p.repo.redirect, ) @@ -624,7 +621,7 @@ def print_download_error(plugin: PluginDesc, ex: Exception): def check_results( - results: List[Tuple[PluginDesc, Union[Exception, Plugin], Optional[Repo]]] + results: List[Tuple[PluginDesc, Union[Exception, Plugin], Optional[Repo]]], ) -> Tuple[List[Tuple[PluginDesc, Plugin]], Redirects]: """ """ failures: List[Tuple[PluginDesc, Exception]] = [] @@ -642,10 +639,9 @@ def check_results( print(f"{len(results) - len(failures)} plugins were checked", end="") if len(failures) == 0: - print() return plugins, redirects else: - print(f", {len(failures)} plugin(s) could not be downloaded:\n") + log.error(f", {len(failures)} plugin(s) could not be downloaded:\n") for plugin, exception in failures: print_download_error(plugin, exception) @@ -738,10 +734,7 @@ def rewrite_input( append: List[PluginDesc] = [], ): log.info("Rewriting input file %s", input_file) - plugins = load_plugins_from_csv( - config, - input_file, - ) + plugins = load_plugins_from_csv(config, input_file) plugins.extend(append) @@ -753,15 +746,25 @@ def rewrite_input( deprecations = json.load(f) # TODO parallelize this step for pdesc, new_repo in redirects.items(): - log.info("Rewriting input file %s", input_file) + log.info("Resolving deprecated plugin %s -> %s", pdesc.name, new_repo.name) new_pdesc = PluginDesc(new_repo, pdesc.branch, pdesc.alias) + old_plugin, _ = prefetch_plugin(pdesc) new_plugin, _ = prefetch_plugin(new_pdesc) + if old_plugin.normalized_name != new_plugin.normalized_name: deprecations[old_plugin.normalized_name] = { "new": new_plugin.normalized_name, "date": cur_date_iso, } + + # remove plugin from index file, so we won't add it to deprecations again + for i, plugin in enumerate(plugins): + if plugin.name == pdesc.name: + plugins.pop(i) + break + plugins.append(new_pdesc) + with open(deprecated, "w") as f: json.dump(deprecations, f, indent=4, sort_keys=True) f.write("\n") @@ -772,7 +775,7 @@ def rewrite_input( fieldnames = ["repo", "branch", "alias"] writer = csv.DictWriter(f, fieldnames, dialect="unix", quoting=csv.QUOTE_NONE) writer.writeheader() - for plugin in sorted(plugins): + for plugin in sorted(plugins, key=lambda x: x.name): writer.writerow(asdict(plugin)) @@ -792,9 +795,11 @@ def update_plugins(editor: Editor, args): log.info("Start updating plugins") if args.proc > 1 and args.github_token == None: - log.warning("You have enabled parallel updates but haven't set a github token.\n" - "You may be hit with `HTTP Error 429: too many requests` as a consequence." - "Either set --proc=1 or --github-token=YOUR_TOKEN. ") + log.warning( + "You have enabled parallel updates but haven't set a github token.\n" + "You may be hit with `HTTP Error 429: too many requests` as a consequence." + "Either set --proc=1 or --github-token=YOUR_TOKEN. " + ) fetch_config = FetchConfig(args.proc, args.github_token) update = editor.get_update(args.input_file, args.outfile, fetch_config) @@ -810,11 +815,9 @@ def update_plugins(editor: Editor, args): if autocommit: try: repo = git.Repo(os.getcwd()) - updated = datetime.now(tz=UTC).strftime('%Y-%m-%d') + updated = datetime.now(tz=UTC).strftime("%Y-%m-%d") print(args.outfile) - commit(repo, - f"{editor.attr_path}: update on {updated}", [args.outfile] - ) + commit(repo, f"{editor.attr_path}: update on {updated}", [args.outfile]) except git.InvalidGitRepositoryError as e: print(f"Not in a git repository: {e}", file=sys.stderr) sys.exit(1) diff --git a/pkgs/applications/editors/kakoune/plugins/update.py b/pkgs/applications/editors/kakoune/plugins/update.py index 5e0ca51727c1..333c96807dd4 100755 --- a/pkgs/applications/editors/kakoune/plugins/update.py +++ b/pkgs/applications/editors/kakoune/plugins/update.py @@ -2,49 +2,63 @@ #!nix-shell update-shell.nix -i python3 # format: -# $ nix run nixpkgs.python3Packages.black -c black update.py +# $ nix run nixpkgs#python3Packages.ruff -- update.py # type-check: -# $ nix run nixpkgs.python3Packages.mypy -c mypy update.py +# $ nix run nixpkgs#python3Packages.mypy -- update.py # linted: -# $ nix run nixpkgs.python3Packages.flake8 -c flake8 --ignore E501,E265,E402 update.py +# $ nix run nixpkgs#python3Packages.flake8 -- --ignore E501,E265,E402 update.py import inspect import os import sys -from typing import List, Tuple from pathlib import Path +from typing import List, Tuple # Import plugin update library from maintainers/scripts/pluginupdate.py -ROOT = Path(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))) # type: ignore +ROOT = Path(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))) # type: ignore sys.path.insert( 0, os.path.join(ROOT.parent.parent.parent.parent.parent, "maintainers", "scripts") ) import pluginupdate -GET_PLUGINS = f"""(with import {{}}; +GET_PLUGINS = f"""( +with import {{ }}; let - inherit (kakouneUtils.override {{}}) buildKakounePluginFrom2Nix; + inherit (kakouneUtils.override {{ }}) buildKakounePluginFrom2Nix; generated = callPackage {ROOT}/generated.nix {{ inherit buildKakounePluginFrom2Nix; }}; - hasChecksum = value: lib.isAttrs value && lib.hasAttrByPath ["src" "outputHash"] value; - getChecksum = name: value: - if hasChecksum value then {{ - submodules = value.src.fetchSubmodules or false; - sha256 = value.src.outputHash; - rev = value.src.rev; - }} else null; + hasChecksum = + value: + lib.isAttrs value + && lib.hasAttrByPath [ + "src" + "outputHash" + ] value; + getChecksum = + name: value: + if hasChecksum value then + {{ + submodules = value.src.fetchSubmodules or false; + sha256 = value.src.outputHash; + rev = value.src.rev; + }} + else + null; checksums = lib.mapAttrs getChecksum generated; -in lib.filterAttrs (n: v: v != null) checksums)""" +in +lib.filterAttrs (n: v: v != null) checksums +)""" + +HEADER = "# This file has been @generated by ./pkgs/applications/editors/kakoune/plugins/update.py. Do not edit!" -HEADER = "# This file has been generated by ./pkgs/applications/editors/kakoune/plugins/update.py. Do not edit!" class KakouneEditor(pluginupdate.Editor): - - - def generate_nix(self, plugins: List[Tuple[pluginupdate.PluginDesc, pluginupdate.Plugin]], outfile: str): - sorted_plugins = sorted(plugins, key=lambda v: v[1].name.lower()) - + def generate_nix( + self, + plugins: List[Tuple[pluginupdate.PluginDesc, pluginupdate.Plugin]], + outfile: str, + ): with open(outfile, "w+") as f: f.write(HEADER) f.write( @@ -54,7 +68,7 @@ let packages = ( self: {""" ) - for pluginDesc, plugin in sorted_plugins: + for pluginDesc, plugin in plugins: f.write( f""" {plugin.normalized_name} = buildKakounePluginFrom2Nix {{ diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index 109fec6702f2..9deb0dcec69f 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -1434,6 +1434,30 @@ final: prev: meta.homepage = "https://github.com/bkad/camelcasemotion/"; }; + catppuccin-nvim = buildVimPlugin { + pname = "catppuccin-nvim"; + version = "2024-11-03"; + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "nvim"; + rev = "35d8057137af463c9f41f169539e9b190d57d269"; + sha256 = "1lra18arndkpd8k9pyh3qgykihqnvm8h6v0w0kjpf36ys9xgpz3r"; + }; + meta.homepage = "https://github.com/catppuccin/nvim/"; + }; + + catppuccin-vim = buildVimPlugin { + pname = "catppuccin-vim"; + version = "2024-08-14"; + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "vim"; + rev = "060000804cf50315ac6dd986bc4d84fbc40cbc9c"; + sha256 = "1faxniddq6zcsb93bsm93lkf01mc4jfzxls5vyxmac6rc5v2k1n4"; + }; + meta.homepage = "https://github.com/catppuccin/vim/"; + }; + caw-vim = buildVimPlugin { pname = "caw.vim"; version = "2023-03-16"; @@ -2057,18 +2081,6 @@ final: prev: meta.homepage = "https://github.com/hrsh7th/cmp-omni/"; }; - cmp-pandoc-references = buildVimPlugin { - pname = "cmp-pandoc-references"; - version = "2022-04-20"; - src = fetchFromGitHub { - owner = "jc-doyle"; - repo = "cmp-pandoc-references"; - rev = "2c808dff631a783ddd2c554c4c6033907589baf6"; - sha256 = "0knwxs6bg6r5hw2g668j34xr5yvqmcvcqyjfpnmpf5y5m82vahxw"; - }; - meta.homepage = "https://github.com/jc-doyle/cmp-pandoc-references/"; - }; - cmp-pandoc-nvim = buildVimPlugin { pname = "cmp-pandoc.nvim"; version = "2023-03-03"; @@ -2081,6 +2093,18 @@ final: prev: meta.homepage = "https://github.com/aspeddro/cmp-pandoc.nvim/"; }; + cmp-pandoc-references = buildVimPlugin { + pname = "cmp-pandoc-references"; + version = "2022-04-20"; + src = fetchFromGitHub { + owner = "jc-doyle"; + repo = "cmp-pandoc-references"; + rev = "2c808dff631a783ddd2c554c4c6033907589baf6"; + sha256 = "0knwxs6bg6r5hw2g668j34xr5yvqmcvcqyjfpnmpf5y5m82vahxw"; + }; + meta.homepage = "https://github.com/jc-doyle/cmp-pandoc-references/"; + }; + cmp-path = buildVimPlugin { pname = "cmp-path"; version = "2022-10-03"; @@ -2345,6 +2369,18 @@ final: prev: meta.homepage = "https://github.com/neoclide/coc-neco/"; }; + coc-nvim = buildVimPlugin { + pname = "coc.nvim"; + version = "2024-10-12"; + src = fetchFromGitHub { + owner = "neoclide"; + repo = "coc.nvim"; + rev = "57d488a06bdb34de89acef3c2f3e9ce609d632ed"; + sha256 = "106w4kgrqlgnszpkzlxrlzsvca880qagv07h93dxsl2ggbdkm91l"; + }; + meta.homepage = "https://github.com/neoclide/coc.nvim/"; + }; + coc-svelte = buildVimPlugin { pname = "coc-svelte"; version = "2023-10-08"; @@ -2369,18 +2405,6 @@ final: prev: meta.homepage = "https://github.com/iamcco/coc-tailwindcss/"; }; - coc-nvim = buildVimPlugin { - pname = "coc.nvim"; - version = "2024-10-12"; - src = fetchFromGitHub { - owner = "neoclide"; - repo = "coc.nvim"; - rev = "57d488a06bdb34de89acef3c2f3e9ce609d632ed"; - sha256 = "106w4kgrqlgnszpkzlxrlzsvca880qagv07h93dxsl2ggbdkm91l"; - }; - meta.homepage = "https://github.com/neoclide/coc.nvim/"; - }; - coconut-vim = buildVimPlugin { pname = "coconut.vim"; version = "2017-10-10"; @@ -2754,18 +2778,6 @@ final: prev: meta.homepage = "https://github.com/zbirenbaum/copilot-cmp/"; }; - copilot-lualine = buildVimPlugin { - pname = "copilot-lualine"; - version = "2024-09-03"; - src = fetchFromGitHub { - owner = "AndreM222"; - repo = "copilot-lualine"; - rev = "f40450c3e138766026327e7807877ea860618258"; - sha256 = "0qx9x28f0c20cz2ax1631rd7qzzkzvhbnv9ivmyw44v5nzp8jy1x"; - }; - meta.homepage = "https://github.com/AndreM222/copilot-lualine/"; - }; - copilot-lua = buildVimPlugin { pname = "copilot.lua"; version = "2024-10-18"; @@ -2778,6 +2790,18 @@ final: prev: meta.homepage = "https://github.com/zbirenbaum/copilot.lua/"; }; + copilot-lualine = buildVimPlugin { + pname = "copilot-lualine"; + version = "2024-09-03"; + src = fetchFromGitHub { + owner = "AndreM222"; + repo = "copilot-lualine"; + rev = "f40450c3e138766026327e7807877ea860618258"; + sha256 = "0qx9x28f0c20cz2ax1631rd7qzzkzvhbnv9ivmyw44v5nzp8jy1x"; + }; + meta.homepage = "https://github.com/AndreM222/copilot-lualine/"; + }; + copilot-vim = buildVimPlugin { pname = "copilot.vim"; version = "2024-10-08"; @@ -2946,18 +2970,6 @@ final: prev: meta.homepage = "https://github.com/FelikZ/ctrlp-py-matcher/"; }; - ctrlp-z = buildVimPlugin { - pname = "ctrlp-z"; - version = "2015-10-17"; - src = fetchFromGitHub { - owner = "amiorin"; - repo = "ctrlp-z"; - rev = "d1a69ec623ce24b9a30fc8fe3cd468c322b03026"; - sha256 = "16nsj1g8lqmyizlb5ijwhf4dsmh0xv1kwqq6jxvhaf55vfga82yl"; - }; - meta.homepage = "https://github.com/amiorin/ctrlp-z/"; - }; - ctrlp-vim = buildVimPlugin { pname = "ctrlp.vim"; version = "2024-10-21"; @@ -2970,6 +2982,18 @@ final: prev: meta.homepage = "https://github.com/ctrlpvim/ctrlp.vim/"; }; + ctrlp-z = buildVimPlugin { + pname = "ctrlp-z"; + version = "2015-10-17"; + src = fetchFromGitHub { + owner = "amiorin"; + repo = "ctrlp-z"; + rev = "d1a69ec623ce24b9a30fc8fe3cd468c322b03026"; + sha256 = "16nsj1g8lqmyizlb5ijwhf4dsmh0xv1kwqq6jxvhaf55vfga82yl"; + }; + meta.homepage = "https://github.com/amiorin/ctrlp-z/"; + }; + cyberdream-nvim = buildVimPlugin { pname = "cyberdream.nvim"; version = "2024-10-19"; @@ -3368,6 +3392,18 @@ final: prev: meta.homepage = "https://github.com/Valodim/deoplete-notmuch/"; }; + deoplete-nvim = buildVimPlugin { + pname = "deoplete.nvim"; + version = "2024-06-05"; + src = fetchFromGitHub { + owner = "Shougo"; + repo = "deoplete.nvim"; + rev = "e5a47d4a2f0b2b6f568e708163e2354097e611c6"; + sha256 = "1cj5y29gkm2l1c7g7bp50k522dn4yk67sywc19lcyizpwxvqq0a2"; + }; + meta.homepage = "https://github.com/Shougo/deoplete.nvim/"; + }; + deoplete-phpactor = buildVimPlugin { pname = "deoplete-phpactor"; version = "2020-09-12"; @@ -3440,18 +3476,6 @@ final: prev: meta.homepage = "https://github.com/deoplete-plugins/deoplete-zsh/"; }; - deoplete-nvim = buildVimPlugin { - pname = "deoplete.nvim"; - version = "2024-06-05"; - src = fetchFromGitHub { - owner = "Shougo"; - repo = "deoplete.nvim"; - rev = "e5a47d4a2f0b2b6f568e708163e2354097e611c6"; - sha256 = "1cj5y29gkm2l1c7g7bp50k522dn4yk67sywc19lcyizpwxvqq0a2"; - }; - meta.homepage = "https://github.com/Shougo/deoplete.nvim/"; - }; - devdocs-vim = buildVimPlugin { pname = "devdocs.vim"; version = "2018-08-27"; @@ -3608,6 +3632,18 @@ final: prev: meta.homepage = "https://github.com/Mofiqul/dracula.nvim/"; }; + dracula-vim = buildVimPlugin { + pname = "dracula-vim"; + version = "2024-07-26"; + src = fetchFromGitHub { + owner = "dracula"; + repo = "vim"; + rev = "65f4225e0526516a67d56c8ac09925a209138e53"; + sha256 = "0jp54l8k40mij0mkavsxzv2kipvzzvy211d6hyvq6ry9liqkl7b8"; + }; + meta.homepage = "https://github.com/dracula/vim/"; + }; + dressing-nvim = buildVimPlugin { pname = "dressing.nvim"; version = "2024-11-04"; @@ -3692,6 +3728,18 @@ final: prev: meta.homepage = "https://github.com/folke/edgy.nvim/"; }; + editorconfig-nvim = buildVimPlugin { + pname = "editorconfig.nvim"; + version = "2023-01-10"; + src = fetchFromGitHub { + owner = "gpanders"; + repo = "editorconfig.nvim"; + rev = "5b9e303e1d6f7abfe616ce4cc8d3fffc554790bf"; + sha256 = "1rkkq11qwql4h7f3fa1pj7gmnwgx5wb9j9p1jrw62m6xhjs7n7m5"; + }; + meta.homepage = "https://github.com/gpanders/editorconfig.nvim/"; + }; + editorconfig-vim = buildVimPlugin { pname = "editorconfig-vim"; version = "2024-10-14"; @@ -3705,18 +3753,6 @@ final: prev: meta.homepage = "https://github.com/editorconfig/editorconfig-vim/"; }; - editorconfig-nvim = buildVimPlugin { - pname = "editorconfig.nvim"; - version = "2023-01-10"; - src = fetchFromGitHub { - owner = "gpanders"; - repo = "editorconfig.nvim"; - rev = "5b9e303e1d6f7abfe616ce4cc8d3fffc554790bf"; - sha256 = "1rkkq11qwql4h7f3fa1pj7gmnwgx5wb9j9p1jrw62m6xhjs7n7m5"; - }; - meta.homepage = "https://github.com/gpanders/editorconfig.nvim/"; - }; - efmls-configs-nvim = buildVimPlugin { pname = "efmls-configs-nvim"; version = "2024-10-15"; @@ -3765,6 +3801,18 @@ final: prev: meta.homepage = "https://github.com/dmix/elvish.vim/"; }; + embark-vim = buildVimPlugin { + pname = "embark-vim"; + version = "2024-09-21"; + src = fetchFromGitHub { + owner = "embark-theme"; + repo = "vim"; + rev = "530e361aa81a8665c3a909a787b918aaf7d702e2"; + sha256 = "1fyjri2i8cg4kykx64xf4i6xwyfdgzhimmr2mpwhjwgkjh8mhlph"; + }; + meta.homepage = "https://github.com/embark-theme/vim/"; + }; + emmet-vim = buildVimPlugin { pname = "emmet-vim"; version = "2024-08-10"; @@ -4343,6 +4391,18 @@ final: prev: meta.homepage = "https://github.com/NTBBloodbath/galaxyline.nvim/"; }; + gbprod-nord = buildVimPlugin { + pname = "gbprod-nord"; + version = "2024-10-10"; + src = fetchFromGitHub { + owner = "gbprod"; + repo = "nord.nvim"; + rev = "4cc19936b1b57ba08eb461c5f450b3976cbb8e0c"; + sha256 = "1k09fv0cb8xaa6z1fz6l58cdzgz4wfnfhv32dw3y395gr69a9sra"; + }; + meta.homepage = "https://github.com/gbprod/nord.nvim/"; + }; + gen_tags-vim = buildVimPlugin { pname = "gen_tags.vim"; version = "2023-03-06"; @@ -4703,6 +4763,18 @@ final: prev: meta.homepage = "https://github.com/luisiacc/gruvbox-baby/"; }; + gruvbox-community = buildVimPlugin { + pname = "gruvbox-community"; + version = "2024-01-21"; + src = fetchFromGitHub { + owner = "gruvbox-community"; + repo = "gruvbox"; + rev = "143a3b8babcfd2bce6c99d6ba496942647c3e30b"; + sha256 = "00wg2m2591fw3d9almwdg39xvwxzz2xid86n536ygai81cirw351"; + }; + meta.homepage = "https://github.com/gruvbox-community/gruvbox/"; + }; + gruvbox-flat-nvim = buildVimPlugin { pname = "gruvbox-flat.nvim"; version = "2023-05-27"; @@ -4858,6 +4930,18 @@ final: prev: meta.homepage = "https://github.com/ThePrimeagen/harpoon/"; }; + harpoon2 = buildVimPlugin { + pname = "harpoon2"; + version = "2024-04-09"; + src = fetchFromGitHub { + owner = "ThePrimeagen"; + repo = "harpoon"; + rev = "0378a6c428a0bed6a2781d459d7943843f374bce"; + sha256 = "129d51cp89dir809yakiw0b7kkjqww7s5h437j8ppn1lq7ghg50m"; + }; + meta.homepage = "https://github.com/ThePrimeagen/harpoon/"; + }; + haskell-scope-highlighting-nvim = buildVimPlugin { pname = "haskell-scope-highlighting.nvim"; version = "2024-07-02"; @@ -6026,18 +6110,6 @@ final: prev: meta.homepage = "https://github.com/ldelossa/litee-filetree.nvim/"; }; - litee-symboltree-nvim = buildVimPlugin { - pname = "litee-symboltree.nvim"; - version = "2022-09-28"; - src = fetchFromGitHub { - owner = "ldelossa"; - repo = "litee-symboltree.nvim"; - rev = "488a660afcfd54644e6b755256907d3c7d8cf8d0"; - sha256 = "0mjjap47cz01qar0q87ssh45l4dkzizxcm986gksrmvhwwrii3ap"; - }; - meta.homepage = "https://github.com/ldelossa/litee-symboltree.nvim/"; - }; - litee-nvim = buildVimPlugin { pname = "litee.nvim"; version = "2024-06-06"; @@ -6050,6 +6122,18 @@ final: prev: meta.homepage = "https://github.com/ldelossa/litee.nvim/"; }; + litee-symboltree-nvim = buildVimPlugin { + pname = "litee-symboltree.nvim"; + version = "2022-09-28"; + src = fetchFromGitHub { + owner = "ldelossa"; + repo = "litee-symboltree.nvim"; + rev = "488a660afcfd54644e6b755256907d3c7d8cf8d0"; + sha256 = "0mjjap47cz01qar0q87ssh45l4dkzizxcm986gksrmvhwwrii3ap"; + }; + meta.homepage = "https://github.com/ldelossa/litee-symboltree.nvim/"; + }; + live-command-nvim = buildVimPlugin { pname = "live-command.nvim"; version = "2024-09-20"; @@ -6362,18 +6446,6 @@ final: prev: meta.homepage = "https://github.com/winston0410/mark-radar.nvim/"; }; - markdown-preview-nvim = buildVimPlugin { - pname = "markdown-preview.nvim"; - version = "2023-10-17"; - src = fetchFromGitHub { - owner = "iamcco"; - repo = "markdown-preview.nvim"; - rev = "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee"; - sha256 = "06187wxcj2ramhimkrgwq1q8fnndzdywljc606n3pr11y8dxs5ac"; - }; - meta.homepage = "https://github.com/iamcco/markdown-preview.nvim/"; - }; - markdown-nvim = buildVimPlugin { pname = "markdown.nvim"; version = "2024-06-25"; @@ -6386,6 +6458,18 @@ final: prev: meta.homepage = "https://github.com/tadmccorkle/markdown.nvim/"; }; + markdown-preview-nvim = buildVimPlugin { + pname = "markdown-preview.nvim"; + version = "2023-10-17"; + src = fetchFromGitHub { + owner = "iamcco"; + repo = "markdown-preview.nvim"; + rev = "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee"; + sha256 = "06187wxcj2ramhimkrgwq1q8fnndzdywljc606n3pr11y8dxs5ac"; + }; + meta.homepage = "https://github.com/iamcco/markdown-preview.nvim/"; + }; + markid = buildVimPlugin { pname = "markid"; version = "2023-10-18"; @@ -6435,18 +6519,6 @@ final: prev: meta.homepage = "https://github.com/williamboman/mason-lspconfig.nvim/"; }; - mason-tool-installer-nvim = buildVimPlugin { - pname = "mason-tool-installer.nvim"; - version = "2024-06-03"; - src = fetchFromGitHub { - owner = "WhoIsSethDaniel"; - repo = "mason-tool-installer.nvim"; - rev = "c5e07b8ff54187716334d585db34282e46fa2932"; - sha256 = "1zpf9v6abg482hbpi0mg0v2g67jvvnxd25aiclyh7bb24s8ljc0y"; - }; - meta.homepage = "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim/"; - }; - mason-nvim = buildVimPlugin { pname = "mason.nvim"; version = "2024-07-16"; @@ -6459,6 +6531,18 @@ final: prev: meta.homepage = "https://github.com/williamboman/mason.nvim/"; }; + mason-tool-installer-nvim = buildVimPlugin { + pname = "mason-tool-installer.nvim"; + version = "2024-06-03"; + src = fetchFromGitHub { + owner = "WhoIsSethDaniel"; + repo = "mason-tool-installer.nvim"; + rev = "c5e07b8ff54187716334d585db34282e46fa2932"; + sha256 = "1zpf9v6abg482hbpi0mg0v2g67jvvnxd25aiclyh7bb24s8ljc0y"; + }; + meta.homepage = "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim/"; + }; + matchit-zip = buildVimPlugin { pname = "matchit.zip"; version = "2010-10-18"; @@ -6495,6 +6579,18 @@ final: prev: meta.homepage = "https://github.com/kaicataldo/material.vim/"; }; + mattn-calendar-vim = buildVimPlugin { + pname = "mattn-calendar-vim"; + version = "2022-02-10"; + src = fetchFromGitHub { + owner = "mattn"; + repo = "calendar-vim"; + rev = "2083a41e2d310f9bbbbf644517f30e901f1fb04d"; + sha256 = "13wakcprkh93i7afykkpavxqvxssjh573pjjljsgip3y3778ms5q"; + }; + meta.homepage = "https://github.com/mattn/calendar-vim/"; + }; + mayansmoke = buildVimPlugin { pname = "mayansmoke"; version = "2010-10-18"; @@ -6579,18 +6675,6 @@ final: prev: meta.homepage = "https://github.com/hadronized/mind.nvim/"; }; - mini-git = buildVimPlugin { - pname = "mini-git"; - version = "2024-09-07"; - src = fetchFromGitHub { - owner = "echasnovski"; - repo = "mini-git"; - rev = "f75ae3855f595e55e1a8a96521ffa01012632b28"; - sha256 = "1d7yy9lbz5ysk5519j25y1gciyq1a2kidzppn7vg0bzwcf6302qg"; - }; - meta.homepage = "https://github.com/echasnovski/mini-git/"; - }; - mini-ai = buildVimPlugin { pname = "mini.ai"; version = "2024-09-28"; @@ -6807,6 +6891,18 @@ final: prev: meta.homepage = "https://github.com/echasnovski/mini.fuzzy/"; }; + mini-git = buildVimPlugin { + pname = "mini-git"; + version = "2024-09-07"; + src = fetchFromGitHub { + owner = "echasnovski"; + repo = "mini-git"; + rev = "f75ae3855f595e55e1a8a96521ffa01012632b28"; + sha256 = "1d7yy9lbz5ysk5519j25y1gciyq1a2kidzppn7vg0bzwcf6302qg"; + }; + meta.homepage = "https://github.com/echasnovski/mini-git/"; + }; + mini-hipatterns = buildVimPlugin { pname = "mini.hipatterns"; version = "2024-09-27"; @@ -8202,6 +8298,18 @@ final: prev: meta.homepage = "https://github.com/oxfist/night-owl.nvim/"; }; + nightfly = buildVimPlugin { + pname = "nightfly"; + version = "2024-11-02"; + src = fetchFromGitHub { + owner = "bluz71"; + repo = "vim-nightfly-colors"; + rev = "fe3aaa329692e7a0820a65d32406ede3e3ab3c91"; + sha256 = "10rwsvzbagwrj39jzjg70wzsd21igcjvvsna4jzif5s1gc5jwbhb"; + }; + meta.homepage = "https://github.com/bluz71/vim-nightfly-colors/"; + }; + nightfox-nvim = buildVimPlugin { pname = "nightfox.nvim"; version = "2024-09-08"; @@ -8346,6 +8454,18 @@ final: prev: meta.homepage = "https://github.com/shaunsingh/nord.nvim/"; }; + nord-vim = buildVimPlugin { + pname = "nord-vim"; + version = "2023-05-03"; + src = fetchFromGitHub { + owner = "nordtheme"; + repo = "vim"; + rev = "f13f5dfbb784deddbc1d8195f34dfd9ec73e2295"; + sha256 = "1f3k8hxf21fij776xw830f71wvl6v5qmv5h806l773c9sx2dp1rz"; + }; + meta.homepage = "https://github.com/nordtheme/vim/"; + }; + nordic-nvim = buildVimPlugin { pname = "nordic.nvim"; version = "2024-06-16"; @@ -8430,6 +8550,18 @@ final: prev: meta.homepage = "https://github.com/nvchad/nvchad/"; }; + nvchad-ui = buildVimPlugin { + pname = "nvchad-ui"; + version = "2024-11-04"; + src = fetchFromGitHub { + owner = "nvchad"; + repo = "ui"; + rev = "f2d4f351187439df6ba8637e06f60c308e3c12cf"; + sha256 = "1m4z6h4rk43h8yxd6qk9h6gifbk3mhhnb3qfkqpdx9c631vvrqf7"; + }; + meta.homepage = "https://github.com/nvchad/ui/"; + }; + nvcode-color-schemes-vim = buildVimPlugin { pname = "nvcode-color-schemes.vim"; version = "2021-07-03"; @@ -9822,6 +9954,18 @@ final: prev: meta.homepage = "https://github.com/Th3Whit3Wolf/one-nvim/"; }; + one-small-step-for-vimkind = buildVimPlugin { + pname = "one-small-step-for-vimkind"; + version = "2024-10-15"; + src = fetchFromGitHub { + owner = "jbyuki"; + repo = "one-small-step-for-vimkind"; + rev = "ad065ad2c814249cfb9e344ce5b2b35d36fbc09f"; + sha256 = "sha256-KIxEjUutHkPRUubZQO3ZaFUm9Lm3mUJ6p6HB6hLuJEM="; + }; + meta.homepage = "https://github.com/jbyuki/one-small-step-for-vimkind/"; + }; + onedark-nvim = buildVimPlugin { pname = "onedark.nvim"; version = "2024-07-05"; @@ -9930,18 +10074,6 @@ final: prev: meta.homepage = "https://github.com/Almo7aya/openingh.nvim/"; }; - one-small-step-for-vimkind = buildVimPlugin { - pname = "one-small-step-for-vimkind"; - version = "2024-10-15"; - src = fetchFromGitHub { - owner = "jbyuki"; - repo = "one-small-step-for-vimkind"; - rev = "ad065ad2c814249cfb9e344ce5b2b35d36fbc09f"; - sha256 = "sha256-KIxEjUutHkPRUubZQO3ZaFUm9Lm3mUJ6p6HB6hLuJEM="; - }; - meta.homepage = "https://github.com/jbyuki/one-small-step-for-vimkind/"; - }; - openscad-nvim = buildVimPlugin { pname = "openscad.nvim"; version = "2024-04-13"; @@ -10183,6 +10315,18 @@ final: prev: meta.homepage = "https://github.com/lifepillar/pgsql.vim/"; }; + phha-zenburn = buildVimPlugin { + pname = "phha-zenburn"; + version = "2024-01-31"; + src = fetchFromGitHub { + owner = "phha"; + repo = "zenburn.nvim"; + rev = "f5ee12b30119499c7fa7f95719cd7c5aab9f9f29"; + sha256 = "10wn4b1awk4bzb7isfqbp3pqzi2ifnmcs7zyrwhna1dpwwdpgvbr"; + }; + meta.homepage = "https://github.com/phha/zenburn.nvim/"; + }; + pig-vim = buildVimPlugin { pname = "pig.vim"; version = "2017-06-08"; @@ -10412,6 +10556,18 @@ final: prev: meta.homepage = "https://github.com/Shougo/pum.vim/"; }; + pure-lua = buildVimPlugin { + pname = "pure-lua"; + version = "2021-05-16"; + src = fetchFromGitHub { + owner = "shaunsingh"; + repo = "moonlight.nvim"; + rev = "e24e4218ec680b6396532808abf57ca0ada82e66"; + sha256 = "0m9w3fpypsqxydjd93arbjqb5576nl40iy27i4ijlrqhgdhl49y3"; + }; + meta.homepage = "https://github.com/shaunsingh/moonlight.nvim/"; + }; + purescript-vim = buildVimPlugin { pname = "purescript-vim"; version = "2023-02-06"; @@ -10737,6 +10893,18 @@ final: prev: meta.homepage = "https://github.com/rest-nvim/rest.nvim/"; }; + restore-view-vim = buildVimPlugin { + pname = "restore-view-vim"; + version = "2014-11-21"; + src = fetchFromGitHub { + owner = "vim-scripts"; + repo = "restore_view.vim"; + rev = "8b933436e3ab8dec120841027183f0d72a4e2096"; + sha256 = "1kmhsbgscbij3rd2f8ahv9qmhw8jppgvfnqb45f81awmmqd9l4bn"; + }; + meta.homepage = "https://github.com/vim-scripts/restore_view.vim/"; + }; + riv-vim = buildVimPlugin { pname = "riv.vim"; version = "2024-03-19"; @@ -10785,6 +10953,18 @@ final: prev: meta.homepage = "https://github.com/ron-rs/ron.vim/"; }; + rose-pine = buildVimPlugin { + pname = "rose-pine"; + version = "2024-10-23"; + src = fetchFromGitHub { + owner = "rose-pine"; + repo = "neovim"; + rev = "07a887a7bef4aacea8c7caebaf8cbf808cdc7a8e"; + sha256 = "00gyn9s5c76fk1sqyg48aldbq2d8m33xia48vik8grj9wp12kbpx"; + }; + meta.homepage = "https://github.com/rose-pine/neovim/"; + }; + roslyn-nvim = buildVimPlugin { pname = "roslyn.nvim"; version = "2024-10-13"; @@ -10869,6 +11049,18 @@ final: prev: meta.homepage = "https://github.com/vmware-archive/salt-vim/"; }; + samodostal-image-nvim = buildVimPlugin { + pname = "samodostal-image-nvim"; + version = "2024-01-07"; + src = fetchFromGitHub { + owner = "samodostal"; + repo = "image.nvim"; + rev = "acbd1d7d64ac0643021a6146eb0557e7c2e793d0"; + sha256 = "0s5fxlc7igmvgpmpry1vkrl4xav37cx94ay1sg246y7y2j4j5l56"; + }; + meta.homepage = "https://github.com/samodostal/image.nvim/"; + }; + satellite-nvim = buildVimPlugin { pname = "satellite.nvim"; version = "2024-09-30"; @@ -11146,18 +11338,6 @@ final: prev: meta.homepage = "https://github.com/ibhagwan/smartyank.nvim/"; }; - snap = buildVimPlugin { - pname = "snap"; - version = "2024-06-05"; - src = fetchFromGitHub { - owner = "camspiers"; - repo = "snap"; - rev = "486a2ab714eee79c392abfb45bdb94398409ed34"; - sha256 = "1ghca3fjdd0v3s4jldilki7kzhz891qxkf1l0dzx4h4p420kc42d"; - }; - meta.homepage = "https://github.com/camspiers/snap/"; - }; - snacks-nvim = buildVimPlugin { pname = "snacks.nvim"; version = "2024-11-07"; @@ -11170,6 +11350,18 @@ final: prev: meta.homepage = "https://github.com/folke/snacks.nvim/"; }; + snap = buildVimPlugin { + pname = "snap"; + version = "2024-06-05"; + src = fetchFromGitHub { + owner = "camspiers"; + repo = "snap"; + rev = "486a2ab714eee79c392abfb45bdb94398409ed34"; + sha256 = "1ghca3fjdd0v3s4jldilki7kzhz891qxkf1l0dzx4h4p420kc42d"; + }; + meta.homepage = "https://github.com/camspiers/snap/"; + }; + snippets-nvim = buildVimPlugin { pname = "snippets.nvim"; version = "2020-09-09"; @@ -12039,6 +12231,18 @@ final: prev: meta.homepage = "https://github.com/nvim-telescope/telescope-media-files.nvim/"; }; + telescope-nvim = buildNeovimPlugin { + pname = "telescope.nvim"; + version = "2024-10-29"; + src = fetchFromGitHub { + owner = "nvim-telescope"; + repo = "telescope.nvim"; + rev = "85922dde3767e01d42a08e750a773effbffaea3e"; + sha256 = "0yv3v4nlh42s96r0xa4fvlil4rh4p0q6l50jk8yg0hmc8vxxzbs1"; + }; + meta.homepage = "https://github.com/nvim-telescope/telescope.nvim/"; + }; + telescope-project-nvim = buildVimPlugin { pname = "telescope-project.nvim"; version = "2024-09-09"; @@ -12172,18 +12376,6 @@ final: prev: meta.homepage = "https://github.com/jvgrootveld/telescope-zoxide/"; }; - telescope-nvim = buildNeovimPlugin { - pname = "telescope.nvim"; - version = "2024-10-29"; - src = fetchFromGitHub { - owner = "nvim-telescope"; - repo = "telescope.nvim"; - rev = "85922dde3767e01d42a08e750a773effbffaea3e"; - sha256 = "0yv3v4nlh42s96r0xa4fvlil4rh4p0q6l50jk8yg0hmc8vxxzbs1"; - }; - meta.homepage = "https://github.com/nvim-telescope/telescope.nvim/"; - }; - telescope_hoogle = buildVimPlugin { pname = "telescope_hoogle"; version = "2023-09-20"; @@ -12388,6 +12580,18 @@ final: prev: meta.homepage = "https://github.com/rachartier/tiny-inline-diagnostic.nvim/"; }; + tinykeymap = buildVimPlugin { + pname = "tinykeymap"; + version = "2024-02-17"; + src = fetchFromGitHub { + owner = "tomtom"; + repo = "tinykeymap_vim"; + rev = "7217ce656069d82cd71872ede09152b232ecaf1b"; + sha256 = "1y0snmb402k1f5r54192d7jpg3fbam4ry92hn063y92110j9580w"; + }; + meta.homepage = "https://github.com/tomtom/tinykeymap_vim/"; + }; + tlib_vim = buildVimPlugin { pname = "tlib_vim"; version = "2022-07-22"; @@ -12666,6 +12870,18 @@ final: prev: meta.homepage = "https://github.com/folke/twilight.nvim/"; }; + typescript-nvim = buildVimPlugin { + pname = "typescript.nvim"; + version = "2023-08-12"; + src = fetchFromGitHub { + owner = "jose-elias-alvarez"; + repo = "typescript.nvim"; + rev = "4de85ef699d7e6010528dcfbddc2ed4c2c421467"; + sha256 = "0rx29i3hmzh2knxx098fvfc0iafx3j08bs1zbv4dxadq56dnhaxm"; + }; + meta.homepage = "https://github.com/jose-elias-alvarez/typescript.nvim/"; + }; + typescript-tools-nvim = buildVimPlugin { pname = "typescript-tools.nvim"; version = "2024-07-18"; @@ -12690,18 +12906,6 @@ final: prev: meta.homepage = "https://github.com/leafgarland/typescript-vim/"; }; - typescript-nvim = buildVimPlugin { - pname = "typescript.nvim"; - version = "2023-08-12"; - src = fetchFromGitHub { - owner = "jose-elias-alvarez"; - repo = "typescript.nvim"; - rev = "4de85ef699d7e6010528dcfbddc2ed4c2c421467"; - sha256 = "0rx29i3hmzh2knxx098fvfc0iafx3j08bs1zbv4dxadq56dnhaxm"; - }; - meta.homepage = "https://github.com/jose-elias-alvarez/typescript.nvim/"; - }; - typst-conceal-vim = buildVimPlugin { pname = "typst-conceal.vim"; version = "2023-10-13"; @@ -13230,6 +13434,18 @@ final: prev: meta.homepage = "https://github.com/MarcWeber/vim-addon-xdebug/"; }; + vim-advanced-sorters = buildVimPlugin { + pname = "vim-advanced-sorters"; + version = "2024-08-16"; + src = fetchFromGitHub { + owner = "inkarkat"; + repo = "vim-AdvancedSorters"; + rev = "f6d29af8a2291895973bf98c2630cc68a8115068"; + sha256 = "09p0qmwvswz3hxca6nakqszplpb1mffv5y9bwnlxab1xm17id6df"; + }; + meta.homepage = "https://github.com/inkarkat/vim-AdvancedSorters/"; + }; + vim-after-object = buildVimPlugin { pname = "vim-after-object"; version = "2018-09-17"; @@ -14142,6 +14358,18 @@ final: prev: meta.homepage = "https://github.com/jhradilek/vim-docbk/"; }; + vim-docbk-snippets = buildVimPlugin { + pname = "vim-docbk-snippets"; + version = "2023-09-29"; + src = fetchFromGitHub { + owner = "jhradilek"; + repo = "vim-snippets"; + rev = "73aa6c7a3dcd9ac452271fbd4f8a2bdf66a7513e"; + sha256 = "1wpn6gfw1r89232d779lz8wy19asrribindlcsaikrsqvml3a0hr"; + }; + meta.homepage = "https://github.com/jhradilek/vim-snippets/"; + }; + vim-dotenv = buildVimPlugin { pname = "vim-dotenv"; version = "2022-05-15"; @@ -18672,231 +18900,5 @@ final: prev: meta.homepage = "https://github.com/nanotee/zoxide.vim/"; }; - catppuccin-nvim = buildVimPlugin { - pname = "catppuccin-nvim"; - version = "2024-11-03"; - src = fetchFromGitHub { - owner = "catppuccin"; - repo = "nvim"; - rev = "35d8057137af463c9f41f169539e9b190d57d269"; - sha256 = "1lra18arndkpd8k9pyh3qgykihqnvm8h6v0w0kjpf36ys9xgpz3r"; - }; - meta.homepage = "https://github.com/catppuccin/nvim/"; - }; - catppuccin-vim = buildVimPlugin { - pname = "catppuccin-vim"; - version = "2024-08-14"; - src = fetchFromGitHub { - owner = "catppuccin"; - repo = "vim"; - rev = "060000804cf50315ac6dd986bc4d84fbc40cbc9c"; - sha256 = "1faxniddq6zcsb93bsm93lkf01mc4jfzxls5vyxmac6rc5v2k1n4"; - }; - meta.homepage = "https://github.com/catppuccin/vim/"; - }; - - dracula-vim = buildVimPlugin { - pname = "dracula-vim"; - version = "2024-07-26"; - src = fetchFromGitHub { - owner = "dracula"; - repo = "vim"; - rev = "65f4225e0526516a67d56c8ac09925a209138e53"; - sha256 = "0jp54l8k40mij0mkavsxzv2kipvzzvy211d6hyvq6ry9liqkl7b8"; - }; - meta.homepage = "https://github.com/dracula/vim/"; - }; - - embark-vim = buildVimPlugin { - pname = "embark-vim"; - version = "2024-09-21"; - src = fetchFromGitHub { - owner = "embark-theme"; - repo = "vim"; - rev = "530e361aa81a8665c3a909a787b918aaf7d702e2"; - sha256 = "1fyjri2i8cg4kykx64xf4i6xwyfdgzhimmr2mpwhjwgkjh8mhlph"; - }; - meta.homepage = "https://github.com/embark-theme/vim/"; - }; - - gbprod-nord = buildVimPlugin { - pname = "gbprod-nord"; - version = "2024-10-10"; - src = fetchFromGitHub { - owner = "gbprod"; - repo = "nord.nvim"; - rev = "4cc19936b1b57ba08eb461c5f450b3976cbb8e0c"; - sha256 = "1k09fv0cb8xaa6z1fz6l58cdzgz4wfnfhv32dw3y395gr69a9sra"; - }; - meta.homepage = "https://github.com/gbprod/nord.nvim/"; - }; - - gruvbox-community = buildVimPlugin { - pname = "gruvbox-community"; - version = "2024-01-21"; - src = fetchFromGitHub { - owner = "gruvbox-community"; - repo = "gruvbox"; - rev = "143a3b8babcfd2bce6c99d6ba496942647c3e30b"; - sha256 = "00wg2m2591fw3d9almwdg39xvwxzz2xid86n536ygai81cirw351"; - }; - meta.homepage = "https://github.com/gruvbox-community/gruvbox/"; - }; - - harpoon2 = buildVimPlugin { - pname = "harpoon2"; - version = "2024-04-09"; - src = fetchFromGitHub { - owner = "ThePrimeagen"; - repo = "harpoon"; - rev = "0378a6c428a0bed6a2781d459d7943843f374bce"; - sha256 = "129d51cp89dir809yakiw0b7kkjqww7s5h437j8ppn1lq7ghg50m"; - }; - meta.homepage = "https://github.com/ThePrimeagen/harpoon/"; - }; - - mattn-calendar-vim = buildVimPlugin { - pname = "mattn-calendar-vim"; - version = "2022-02-10"; - src = fetchFromGitHub { - owner = "mattn"; - repo = "calendar-vim"; - rev = "2083a41e2d310f9bbbbf644517f30e901f1fb04d"; - sha256 = "13wakcprkh93i7afykkpavxqvxssjh573pjjljsgip3y3778ms5q"; - }; - meta.homepage = "https://github.com/mattn/calendar-vim/"; - }; - - nightfly = buildVimPlugin { - pname = "nightfly"; - version = "2024-11-02"; - src = fetchFromGitHub { - owner = "bluz71"; - repo = "vim-nightfly-colors"; - rev = "fe3aaa329692e7a0820a65d32406ede3e3ab3c91"; - sha256 = "10rwsvzbagwrj39jzjg70wzsd21igcjvvsna4jzif5s1gc5jwbhb"; - }; - meta.homepage = "https://github.com/bluz71/vim-nightfly-colors/"; - }; - - nord-vim = buildVimPlugin { - pname = "nord-vim"; - version = "2023-05-03"; - src = fetchFromGitHub { - owner = "nordtheme"; - repo = "vim"; - rev = "f13f5dfbb784deddbc1d8195f34dfd9ec73e2295"; - sha256 = "1f3k8hxf21fij776xw830f71wvl6v5qmv5h806l773c9sx2dp1rz"; - }; - meta.homepage = "https://github.com/nordtheme/vim/"; - }; - - nvchad-ui = buildVimPlugin { - pname = "nvchad-ui"; - version = "2024-11-04"; - src = fetchFromGitHub { - owner = "nvchad"; - repo = "ui"; - rev = "f2d4f351187439df6ba8637e06f60c308e3c12cf"; - sha256 = "1m4z6h4rk43h8yxd6qk9h6gifbk3mhhnb3qfkqpdx9c631vvrqf7"; - }; - meta.homepage = "https://github.com/nvchad/ui/"; - }; - - phha-zenburn = buildVimPlugin { - pname = "phha-zenburn"; - version = "2024-01-31"; - src = fetchFromGitHub { - owner = "phha"; - repo = "zenburn.nvim"; - rev = "f5ee12b30119499c7fa7f95719cd7c5aab9f9f29"; - sha256 = "10wn4b1awk4bzb7isfqbp3pqzi2ifnmcs7zyrwhna1dpwwdpgvbr"; - }; - meta.homepage = "https://github.com/phha/zenburn.nvim/"; - }; - - pure-lua = buildVimPlugin { - pname = "pure-lua"; - version = "2021-05-16"; - src = fetchFromGitHub { - owner = "shaunsingh"; - repo = "moonlight.nvim"; - rev = "e24e4218ec680b6396532808abf57ca0ada82e66"; - sha256 = "0m9w3fpypsqxydjd93arbjqb5576nl40iy27i4ijlrqhgdhl49y3"; - }; - meta.homepage = "https://github.com/shaunsingh/moonlight.nvim/"; - }; - - restore-view-vim = buildVimPlugin { - pname = "restore-view-vim"; - version = "2014-11-21"; - src = fetchFromGitHub { - owner = "vim-scripts"; - repo = "restore_view.vim"; - rev = "8b933436e3ab8dec120841027183f0d72a4e2096"; - sha256 = "1kmhsbgscbij3rd2f8ahv9qmhw8jppgvfnqb45f81awmmqd9l4bn"; - }; - meta.homepage = "https://github.com/vim-scripts/restore_view.vim/"; - }; - - rose-pine = buildVimPlugin { - pname = "rose-pine"; - version = "2024-10-23"; - src = fetchFromGitHub { - owner = "rose-pine"; - repo = "neovim"; - rev = "07a887a7bef4aacea8c7caebaf8cbf808cdc7a8e"; - sha256 = "00gyn9s5c76fk1sqyg48aldbq2d8m33xia48vik8grj9wp12kbpx"; - }; - meta.homepage = "https://github.com/rose-pine/neovim/"; - }; - - samodostal-image-nvim = buildVimPlugin { - pname = "samodostal-image-nvim"; - version = "2024-01-07"; - src = fetchFromGitHub { - owner = "samodostal"; - repo = "image.nvim"; - rev = "acbd1d7d64ac0643021a6146eb0557e7c2e793d0"; - sha256 = "0s5fxlc7igmvgpmpry1vkrl4xav37cx94ay1sg246y7y2j4j5l56"; - }; - meta.homepage = "https://github.com/samodostal/image.nvim/"; - }; - - tinykeymap = buildVimPlugin { - pname = "tinykeymap"; - version = "2024-02-17"; - src = fetchFromGitHub { - owner = "tomtom"; - repo = "tinykeymap_vim"; - rev = "7217ce656069d82cd71872ede09152b232ecaf1b"; - sha256 = "1y0snmb402k1f5r54192d7jpg3fbam4ry92hn063y92110j9580w"; - }; - meta.homepage = "https://github.com/tomtom/tinykeymap_vim/"; - }; - - vim-advanced-sorters = buildVimPlugin { - pname = "vim-advanced-sorters"; - version = "2024-08-16"; - src = fetchFromGitHub { - owner = "inkarkat"; - repo = "vim-AdvancedSorters"; - rev = "f6d29af8a2291895973bf98c2630cc68a8115068"; - sha256 = "09p0qmwvswz3hxca6nakqszplpb1mffv5y9bwnlxab1xm17id6df"; - }; - meta.homepage = "https://github.com/inkarkat/vim-AdvancedSorters/"; - }; - - vim-docbk-snippets = buildVimPlugin { - pname = "vim-docbk-snippets"; - version = "2023-09-29"; - src = fetchFromGitHub { - owner = "jhradilek"; - repo = "vim-snippets"; - rev = "73aa6c7a3dcd9ac452271fbd4f8a2bdf66a7513e"; - sha256 = "1wpn6gfw1r89232d779lz8wy19asrribindlcsaikrsqvml3a0hr"; - }; - meta.homepage = "https://github.com/jhradilek/vim-snippets/"; - }; } diff --git a/pkgs/applications/editors/vim/plugins/update.py b/pkgs/applications/editors/vim/plugins/update.py index a8525b9018b5..37c0adb6bb29 100755 --- a/pkgs/applications/editors/vim/plugins/update.py +++ b/pkgs/applications/editors/vim/plugins/update.py @@ -3,7 +3,7 @@ # run with: # $ nix run .\#vimPluginsUpdater # format: -# $ nix run nixpkgs#python3Packages.black -- update.py +# $ nix run nixpkgs#python3Packages.ruff -- update.py # type-check: # $ nix run nixpkgs#python3Packages.mypy -- update.py # linted: @@ -19,30 +19,24 @@ # import inspect -import os -import logging -import textwrap import json +import logging +import os import subprocess -from typing import List, Tuple +import textwrap from pathlib import Path - +from typing import List, Tuple log = logging.getLogger("vim-updater") -sh = logging.StreamHandler() -formatter = logging.Formatter("%(name)s:%(levelname)s: %(message)s") -sh.setFormatter(formatter) -log.addHandler(sh) - # Import plugin update library from maintainers/scripts/pluginupdate.py ROOT = Path(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))) -import pluginupdate import importlib -from pluginupdate import run_nix_expr, PluginDesc -treesitter = importlib.import_module('nvim-treesitter.update') +import pluginupdate +from pluginupdate import PluginDesc, run_nix_expr +treesitter = importlib.import_module("nvim-treesitter.update") HEADER = ( @@ -56,17 +50,14 @@ class VimEditor(pluginupdate.Editor): nvim_treesitter_updated = False def generate_nix( - self, - plugins: List[Tuple[PluginDesc, pluginupdate.Plugin]], - outfile: str + self, plugins: List[Tuple[PluginDesc, pluginupdate.Plugin]], outfile: str ): log.info("Generating nix code") - sorted_plugins = sorted(plugins, key=lambda v: v[0].name.lower()) log.debug("Loading nvim-treesitter revision from nix...") nvim_treesitter_rev = pluginupdate.run_nix_expr( "(import { }).vimPlugins.nvim-treesitter.src.rev", self.nixpkgs, - timeout=10 + timeout=10, ) GET_PLUGINS_LUA = """ @@ -98,7 +89,7 @@ class VimEditor(pluginupdate.Editor): """ ) ) - for pdesc, plugin in sorted_plugins: + for pdesc, plugin in plugins: content = self.plugin2nix(pdesc, plugin, _isNeovimPlugin(plugin)) f.write(content) if ( @@ -109,8 +100,9 @@ class VimEditor(pluginupdate.Editor): f.write("\n}\n") print(f"updated {outfile}") - def plugin2nix(self, pdesc: PluginDesc, plugin: pluginupdate.Plugin, isNeovim: bool) -> str: - + def plugin2nix( + self, pdesc: PluginDesc, plugin: pluginupdate.Plugin, isNeovim: bool + ) -> str: repo = pdesc.repo content = f" {plugin.normalized_name} = " @@ -138,19 +130,25 @@ class VimEditor(pluginupdate.Editor): if self.nvim_treesitter_updated: print("updating nvim-treesitter grammars") cmd = [ - "nix", "build", - "vimPlugins.nvim-treesitter.src", "-f", self.nixpkgs - , "--print-out-paths" + "nix", + "build", + "vimPlugins.nvim-treesitter.src", + "-f", + self.nixpkgs, + "--print-out-paths", ] log.debug("Running command: %s", " ".join(cmd)) - nvim_treesitter_dir = subprocess.check_output(cmd, text=True, timeout=90).strip() + nvim_treesitter_dir = subprocess.check_output( + cmd, text=True, timeout=90 + ).strip() generated = treesitter.update_grammars(nvim_treesitter_dir) treesitter_generated_nix_path = os.path.join( - NIXPKGS_NVIMTREESITTER_FOLDER, - "generated.nix" + NIXPKGS_NVIMTREESITTER_FOLDER, "generated.nix" + ) + open(os.path.join(args.nixpkgs, treesitter_generated_nix_path), "w").write( + generated ) - open(os.path.join(args.nixpkgs, treesitter_generated_nix_path), "w").write(generated) if self.nixpkgs_repo: index = self.nixpkgs_repo.index diff --git a/pkgs/applications/editors/vim/plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index aad3a46ecaf6..bc13c7b68e96 100644 --- a/pkgs/applications/editors/vim/plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names @@ -116,9 +116,10 @@ https://github.com/AndrewRadev/bufferize.vim/,HEAD, https://github.com/akinsho/bufferline.nvim/,, https://github.com/kwkarlwang/bufjump.nvim/,HEAD, https://github.com/bullets-vim/bullets.vim/,, -https://github.com/mattn/calendar-vim/,,mattn-calendar-vim https://github.com/itchyny/calendar.vim/,, https://github.com/bkad/camelcasemotion/,, +https://github.com/catppuccin/nvim/,,catppuccin-nvim +https://github.com/catppuccin/vim/,HEAD,catppuccin-vim https://github.com/tyru/caw.vim/,, https://github.com/uga-rosa/ccc.nvim/,HEAD, https://github.com/Eandrju/cellular-automaton.nvim/,HEAD, @@ -299,6 +300,7 @@ https://github.com/direnv/direnv.vim/,, https://github.com/chipsenkbeil/distant.nvim/,HEAD, https://github.com/doki-theme/doki-theme-vim/,, https://github.com/NTBBloodbath/doom-one.nvim/,, +https://github.com/dracula/vim/,,dracula-vim https://github.com/Mofiqul/dracula.nvim/,HEAD, https://github.com/stevearc/dressing.nvim/,, https://github.com/Bekaboo/dropbar.nvim/,HEAD, @@ -313,6 +315,7 @@ https://github.com/creativenull/efmls-configs-nvim/,, https://github.com/elixir-tools/elixir-tools.nvim/,HEAD, https://github.com/elmcast/elm-vim/,, https://github.com/dmix/elvish.vim/,, +https://github.com/embark-theme/vim/,,embark-vim https://github.com/mattn/emmet-vim/,, https://github.com/vim-scripts/emodeline/,, https://github.com/vim-scripts/errormarker.vim/,, @@ -361,6 +364,7 @@ https://github.com/gfanto/fzf-lsp.nvim/,, https://github.com/ibhagwan/fzf-lua/,HEAD, https://github.com/junegunn/fzf.vim/,, https://github.com/NTBBloodbath/galaxyline.nvim/,, +https://github.com/gbprod/nord.nvim/,,gbprod-nord https://github.com/jsfaint/gen_tags.vim/,, https://github.com/gentoo/gentoo-syntax/,, https://github.com/ndmitchell/ghcid/,, @@ -389,9 +393,9 @@ https://github.com/liuchengxu/graphviz.vim/,, https://github.com/cbochs/grapple.nvim/,HEAD, https://github.com/blazkowolf/gruber-darker.nvim/,, https://github.com/MagicDuck/grug-far.nvim/,, -https://github.com/gruvbox-community/gruvbox/,,gruvbox-community https://github.com/morhetz/gruvbox/,, https://github.com/luisiacc/gruvbox-baby/,HEAD, +https://github.com/gruvbox-community/gruvbox/,,gruvbox-community https://github.com/eddyekofo94/gruvbox-flat.nvim/,, https://github.com/sainnhe/gruvbox-material/,, https://github.com/f4z3r/gruvbox-material.nvim/,HEAD, @@ -404,8 +408,8 @@ https://github.com/junegunn/gv.vim/,, https://github.com/TheSnakeWitcher/hardhat.nvim/,HEAD, https://github.com/m4xshen/hardtime.nvim/,HEAD, https://git.sr.ht/~sircmpwn/hare.vim,HEAD, -https://github.com/ThePrimeagen/harpoon/,harpoon2,harpoon2 https://github.com/ThePrimeagen/harpoon/,master, +https://github.com/ThePrimeagen/harpoon/,harpoon2,harpoon2 https://github.com/kiyoon/haskell-scope-highlighting.nvim/,HEAD, https://github.com/mrcjkb/haskell-snippets.nvim/,HEAD, https://github.com/neovimhaskell/haskell-vim/,, @@ -434,7 +438,6 @@ https://github.com/idris-hackers/idris-vim/,, https://github.com/ShinKage/idris2-nvim/,, https://github.com/edwinb/idris2-vim/,, https://github.com/3rd/image.nvim/,HEAD, -https://github.com/samodostal/image.nvim/,HEAD,samodostal-image-nvim https://github.com/HakonHarnes/img-clip.nvim/,HEAD, https://github.com/lewis6991/impatient.nvim/,, https://github.com/backdround/improved-search.nvim/,HEAD, @@ -447,7 +450,6 @@ https://github.com/Darazaki/indent-o-matic/,, https://github.com/Yggdroot/indentLine/,, https://github.com/ciaranm/inkpot/,, https://github.com/jbyuki/instant.nvim/,HEAD, -https://github.com/jbyuki/one-small-step-for-vimkind/,HEAD, https://github.com/pta2002/intellitab.nvim/,HEAD, https://github.com/parsonsmatt/intero-neovim/,, https://github.com/keith/investigate.vim/,, @@ -544,6 +546,7 @@ https://github.com/williamboman/mason.nvim/,HEAD, https://github.com/vim-scripts/matchit.zip/,, https://github.com/marko-cerovac/material.nvim/,, https://github.com/kaicataldo/material.vim/,HEAD, +https://github.com/mattn/calendar-vim/,,mattn-calendar-vim https://github.com/vim-scripts/mayansmoke/,, https://github.com/chikamichi/mediawiki.vim/,HEAD, https://github.com/savq/melange-nvim/,, @@ -602,7 +605,6 @@ https://github.com/miikanissi/modus-themes.nvim/,HEAD, https://github.com/tomasr/molokai/,, https://github.com/benlubas/molten-nvim/,HEAD, https://github.com/loctvl842/monokai-pro.nvim/,HEAD, -https://github.com/shaunsingh/moonlight.nvim/,,pure-lua https://github.com/leafo/moonscript-vim/,HEAD, https://github.com/yegappan/mru/,, https://github.com/smoka7/multicursors.nvim/,HEAD, @@ -673,7 +675,6 @@ https://github.com/stevanmilic/neotest-scala/,HEAD, https://github.com/shunsambongi/neotest-testthat/,HEAD, https://github.com/marilari88/neotest-vitest/,HEAD, https://github.com/lawrence-laz/neotest-zig/,HEAD, -https://github.com/rose-pine/neovim/,main,rose-pine https://github.com/Shatur/neovim-ayu/,, https://github.com/cloudhead/neovim-fuzzy/,, https://github.com/jeffkreeftmeijer/neovim-sensible/,, @@ -688,6 +689,7 @@ https://github.com/fiatjaf/neuron.vim/,, https://github.com/Olical/nfnl/,main, https://github.com/chr4/nginx.vim/,, https://github.com/oxfist/night-owl.nvim/,, +https://github.com/bluz71/vim-nightfly-colors/,,nightfly https://github.com/EdenEast/nightfox.nvim/,, https://github.com/Alexis12119/nightly.nvim/,, https://github.com/zah/nim.vim/,, @@ -699,7 +701,7 @@ https://github.com/shortcuts/no-neck-pain.nvim/,HEAD, https://github.com/kartikp10/noctis.nvim/,, https://github.com/folke/noice.nvim/,HEAD, https://github.com/nvimtools/none-ls.nvim/,HEAD, -https://github.com/gbprod/nord.nvim/,,gbprod-nord +https://github.com/nordtheme/vim/,,nord-vim https://github.com/shaunsingh/nord.nvim/,, https://github.com/andersevenrud/nordic.nvim/,, https://github.com/vigoux/notifier.nvim/,HEAD, @@ -708,8 +710,8 @@ https://github.com/MunifTanjim/nui.nvim/,main, https://github.com/jose-elias-alvarez/null-ls.nvim/,, https://github.com/nacro90/numb.nvim/,, https://github.com/nvchad/nvchad/,HEAD, +https://github.com/nvchad/ui/,HEAD,nvchad-ui https://github.com/ChristianChiarulli/nvcode-color-schemes.vim/,, -https://github.com/catppuccin/nvim/,,catppuccin-nvim https://github.com/AckslD/nvim-FeMaco.lua/,HEAD, https://github.com/nathanmsmith/nvim-ale-diagnostic/,, https://github.com/windwp/nvim-autopairs/,, @@ -825,6 +827,7 @@ https://github.com/nomnivore/ollama.nvim/,HEAD, https://github.com/yonlu/omni.vim/,, https://github.com/Hoffs/omnisharp-extended-lsp.nvim/,HEAD, https://github.com/Th3Whit3Wolf/one-nvim/,, +https://github.com/jbyuki/one-small-step-for-vimkind/,HEAD, https://github.com/navarasu/onedark.nvim/,, https://github.com/joshdick/onedark.vim/,, https://github.com/LunarVim/onedarker.nvim/,, @@ -854,6 +857,7 @@ https://github.com/olimorris/persisted.nvim/,HEAD, https://github.com/folke/persistence.nvim/,, https://github.com/pest-parser/pest.vim/,HEAD, https://github.com/lifepillar/pgsql.vim/,, +https://github.com/phha/zenburn.nvim/,,phha-zenburn https://github.com/motus/pig.vim/,, https://github.com/weirongxu/plantuml-previewer.vim/,HEAD, https://github.com/aklt/plantuml-syntax/,, @@ -873,6 +877,7 @@ https://github.com/ahmedkhalf/project.nvim/,, https://github.com/kevinhwang91/promise-async/,HEAD, https://github.com/frigoeu/psc-ide-vim/,, https://github.com/Shougo/pum.vim/,HEAD, +https://github.com/shaunsingh/moonlight.nvim/,,pure-lua https://github.com/purescript-contrib/purescript-vim/,, https://github.com/python-mode/python-mode/,, https://github.com/vim-python/python-syntax/,, @@ -905,6 +910,7 @@ https://github.com/gu-fan/riv.vim/,, https://github.com/kevinhwang91/rnvimr/,, https://github.com/mfukar/robotframework-vim/,, https://github.com/ron-rs/ron.vim/,, +https://github.com/rose-pine/neovim/,main,rose-pine https://github.com/jmederosalvarado/roslyn.nvim/,HEAD, https://github.com/keith/rspec.vim/,, https://github.com/ccarpita/rtorrent-syntax-file/,, @@ -912,6 +918,7 @@ https://github.com/simrat39/rust-tools.nvim/,, https://github.com/rust-lang/rust.vim/,, https://github.com/hauleth/sad.vim/,, https://github.com/vmware-archive/salt-vim/,, +https://github.com/samodostal/image.nvim/,HEAD,samodostal-image-nvim https://github.com/lewis6991/satellite.nvim/,HEAD, https://github.com/davidgranstrom/scnvim/,HEAD, https://github.com/tiagovla/scope.nvim/,HEAD, @@ -935,8 +942,8 @@ https://github.com/mrjones2014/smart-splits.nvim/,, https://github.com/m4xshen/smartcolumn.nvim/,, https://github.com/gorkunov/smartpairs.vim/,, https://github.com/ibhagwan/smartyank.nvim/,, -https://github.com/camspiers/snap/,, https://github.com/folke/snacks.nvim/,HEAD, +https://github.com/camspiers/snap/,, https://github.com/norcalli/snippets.nvim/,, https://github.com/shaunsingh/solarized.nvim/,HEAD, https://github.com/sainnhe/sonokai/,, @@ -1068,7 +1075,6 @@ https://github.com/jose-elias-alvarez/typescript.nvim/,, https://github.com/MrPicklePinosaur/typst-conceal.vim/,HEAD, https://github.com/chomosuke/typst-preview.nvim/,HEAD, https://github.com/kaarmu/typst.vim/,HEAD, -https://github.com/nvchad/ui/,HEAD,nvchad-ui https://github.com/altermo/ultimate-autopair.nvim/,HEAD, https://github.com/SirVer/ultisnips/,, https://github.com/mbbill/undotree/,, @@ -1084,11 +1090,6 @@ https://github.com/junegunn/vader.vim/,, https://github.com/jbyuki/venn.nvim/,, https://github.com/vhda/verilog_systemverilog.vim/,, https://github.com/vifm/vifm.vim/,, -https://github.com/catppuccin/vim/,HEAD,catppuccin-vim -https://github.com/dracula/vim/,,dracula-vim -https://github.com/embark-theme/vim/,,embark-vim -https://github.com/nordtheme/vim/,,nord-vim -https://github.com/inkarkat/vim-AdvancedSorters/,,vim-advanced-sorters https://github.com/Konfekt/vim-CtrlXA/,, https://github.com/konfekt/vim-DetectSpellLang/,, https://github.com/dpelle/vim-LanguageTool/,, @@ -1115,6 +1116,7 @@ https://github.com/MarcWeber/vim-addon-sql/,, https://github.com/MarcWeber/vim-addon-syntax-checker/,, https://github.com/MarcWeber/vim-addon-toggle-buffer/,, https://github.com/MarcWeber/vim-addon-xdebug/,, +https://github.com/inkarkat/vim-AdvancedSorters/,,vim-advanced-sorters https://github.com/junegunn/vim-after-object/,, https://github.com/danilo-augusto/vim-afterglow/,HEAD, https://github.com/msuperdock/vim-agda/,HEAD, @@ -1191,6 +1193,7 @@ https://github.com/kristijanhusak/vim-dirvish-git/,, https://github.com/tpope/vim-dispatch/,, https://github.com/radenling/vim-dispatch-neovim/,, https://github.com/jhradilek/vim-docbk/,, +https://github.com/jhradilek/vim-snippets/,,vim-docbk-snippets https://github.com/tpope/vim-dotenv/,, https://github.com/junegunn/vim-easy-align/,, https://github.com/zhou13/vim-easyescape/,, @@ -1344,7 +1347,6 @@ https://github.com/jistr/vim-nerdtree-tabs/,, https://github.com/nfnty/vim-nftables/,, https://github.com/kana/vim-niceblock/,, https://github.com/nickel-lang/vim-nickel/,main, -https://github.com/bluz71/vim-nightfly-colors/,,nightfly https://github.com/tommcdo/vim-ninja-feet/,, https://github.com/LnL7/vim-nix/,, https://github.com/symphorien/vim-nixhash/,, @@ -1436,7 +1438,6 @@ https://github.com/bohlender/vim-smt2/,, https://github.com/justinmk/vim-sneak/,, https://github.com/garbas/vim-snipmate/,, https://github.com/honza/vim-snippets/,, -https://github.com/jhradilek/vim-snippets/,,vim-docbk-snippets https://github.com/lifepillar/vim-solarized8/,HEAD, https://github.com/tomlion/vim-solidity/,, https://github.com/christoomey/vim-sort-motion/,, @@ -1565,7 +1566,6 @@ https://github.com/Lilja/zellij.nvim/,HEAD, https://github.com/folke/zen-mode.nvim/,, https://github.com/zenbones-theme/zenbones.nvim/,HEAD, https://github.com/jnurmine/zenburn/,, -https://github.com/phha/zenburn.nvim/,,phha-zenburn https://github.com/nvimdev/zephyr-nvim/,, https://github.com/ziglang/zig.vim/,, https://github.com/zk-org/zk-nvim/,HEAD, diff --git a/pkgs/by-name/lu/luarocks-packages-updater/updater.py b/pkgs/by-name/lu/luarocks-packages-updater/updater.py index 91194879b875..2471e46f5f42 100755 --- a/pkgs/by-name/lu/luarocks-packages-updater/updater.py +++ b/pkgs/by-name/lu/luarocks-packages-updater/updater.py @@ -1,26 +1,26 @@ #!/usr/bin/env python # format: -# $ nix run nixpkgs#python3Packages.black -- update.py +# $ nix run nixpkgs#python3Packages.ruff -- update.py # type-check: # $ nix run nixpkgs#python3Packages.mypy -- update.py # linted: # $ nix run nixpkgs#python3Packages.flake8 -- --ignore E501,E265,E402 update.py -import inspect -import os -import tempfile -import shutil -from dataclasses import dataclass -import subprocess import csv +import inspect import logging +import os +import shutil +import subprocess +import tempfile import textwrap +from dataclasses import dataclass from multiprocessing.dummy import Pool -import pluginupdate -from pluginupdate import update_plugins, FetchConfig - -from typing import List, Tuple, Optional from pathlib import Path +from typing import List, Optional, Tuple + +import pluginupdate +from pluginupdate import FetchConfig, update_plugins log = logging.getLogger() log.addHandler(logging.StreamHandler()) @@ -35,9 +35,7 @@ HEADER = """/* {GENERATED_NIXFILE} is an auto-generated file -- DO NOT EDIT! Regenerate it with: nix run nixpkgs#luarocks-packages-updater You can customize the generated packages in pkgs/development/lua-modules/overrides.nix */ -""".format( - GENERATED_NIXFILE=GENERATED_NIXFILE -) +""".format(GENERATED_NIXFILE=GENERATED_NIXFILE) FOOTER = """ } @@ -71,7 +69,6 @@ class LuaPlugin: # rename Editor to LangUpdate/ EcosystemUpdater class LuaEditor(pluginupdate.Editor): - def create_parser(self): parser = super().create_parser() parser.set_defaults(proc=1) @@ -173,10 +170,7 @@ def generate_pkg_nix(plug: LuaPlugin): if plug.rockspec != "": if plug.ref or plug.version: - msg = ( - "'version' and 'ref' will be ignored as the rockspec is hardcoded for package %s" - % plug.name - ) + msg = "'version' and 'ref' will be ignored as the rockspec is hardcoded for package %s" % plug.name log.warning(msg) log.debug("Updating from rockspec %s", plug.rockspec) @@ -193,7 +187,7 @@ def generate_pkg_nix(plug: LuaPlugin): if plug.luaversion: cmd.append(f"--lua-version={plug.luaversion}") - luaver = plug.luaversion.replace('.', '') + luaver = plug.luaversion.replace(".", "") if luaver := os.getenv(f"LUA_{luaver}"): cmd.append(f"--lua-dir={luaver}")