diff --git a/home-manager/cli/neovim.nix b/home-manager/cli/neovim.nix index 6d70f46..c617286 100644 --- a/home-manager/cli/neovim.nix +++ b/home-manager/cli/neovim.nix @@ -1,5 +1,19 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: +let + nvim-spell-fr-utf8-dictionary = builtins.fetchurl { + url = "http://ftp.vim.org/vim/runtime/spell/fr.utf-8.spl"; + sha256 = "abfb9702b98d887c175ace58f1ab39733dc08d03b674d914f56344ef86e63b61"; + }; + + nvim-spell-fr-utf8-suggestions = builtins.fetchurl { + url = "http://ftp.vim.org/vim/runtime/spell/fr.utf-8.sug"; + sha256 = "0294bc32b42c90bbb286a89e23ca3773b7ef50eff1ab523b1513d6a25c6b3f58"; + }; +in { + + home.file."${config.xdg.configHome}/nvim/spell/fr.utf-8.spl".source = nvim-spell-fr-utf8-dictionary; + home.file."${config.xdg.configHome}/nvim/spell/fr.utf-8.sug".source = nvim-spell-fr-utf8-suggestions; programs.neovim = { enable = true; defaultEditor = true;