diff --git a/modules/home-manager/cli/neovim/default.nix b/modules/home-manager/cli/neovim/default.nix index 2daee9a..7cf7d45 100644 --- a/modules/home-manager/cli/neovim/default.nix +++ b/modules/home-manager/cli/neovim/default.nix @@ -10,16 +10,15 @@ let url = "https://ftp.nluug.nl/vim/runtime/spell/fr.utf-8.sug"; sha256 = "0294bc32b42c90bbb286a89e23ca3773b7ef50eff1ab523b1513d6a25c6b3f58"; }; - fromGitHub = rev: ref: repo: - pkgs.vimUtils.buildVimPlugin { - pname = "${pkgs.lib.strings.sanitizeDerivationName repo}"; - version = ref; - src = builtins.fetchGit { - url = "https://github.com/${repo}.git"; - ref = ref; - rev = rev; - }; + yaml-companion = pkgs.vimUtils.buildVimPlugin { + pname = "yaml-companion"; + version = "main"; + src = builtins.fetchGit { + url = "https://github.com/someone-stole-my-name/yaml-companion.nvim.git"; + rev = "131b0d67bd2e0f1a02e0daf2f3460482221ce3c0"; + ref = "main"; }; + }; in { options.modules.cli.neovim = { @@ -197,13 +196,12 @@ in type = "lua"; config = ( builtins.readFile ./files/whichkey.lua ); } -# yaml companion { - plugin = ( fromGitHub - "131b0d67bd2e0f1a02e0daf2f3460482221ce3c0" - "main" - "someone-stole-my-name/yaml-companion.nvim" - ); + plugin = yaml-companion.overrideAttrs { + dependencies = [ + nvim-lspconfig + ]; + }; type = "lua"; } vim-helm