Skip to content

Cannot find word list "fr.utf-8.spl" or "fr.ascii.spl" #1919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
biscotty666 opened this issue Jul 24, 2024 · 7 comments · May be fixed by #3143
Closed
1 task done

Cannot find word list "fr.utf-8.spl" or "fr.ascii.spl" #1919

biscotty666 opened this issue Jul 24, 2024 · 7 comments · May be fixed by #3143
Labels
bug Something isn't working

Comments

@biscotty666
Copy link

biscotty666 commented Jul 24, 2024

Field Description
Plugin treesitter?
Nixpkgs unstable
Home Manager unstable
  • I have read the FAQ and my bug is not listed there.

Description

When I open a markdown file, and only those afaik, I get the message "Cannot find word list "fr.utf-8.spl" or "fr.ascii.spl"". How can I install them? I don't actually know what they are, but look like french language dictionaries, which would be nice. I'm an ancient vim user getting used to neovim, so don't really know my way around. I don't really know if this is related to treesitter at all, since it seems to deal with programming languages not natural ones.

I just installed nixvim recently so I've got a pretty vanilla setup.

Thank you.

Minimal, Reproducible Example (MRE)

Open a buffer with a md file

programs.nixvim = {
}
@biscotty666 biscotty666 added the bug Something isn't working label Jul 24, 2024
@khaneliman
Copy link
Contributor

Those would be spellfiles that get searched for when you set opts.spelllang. Do you somewhere in your config set opts.spelllang = [ "fr" ]

@mirkolenz
Copy link
Contributor

Just came across this issue when trying to configure opts.spelllang = "en_us,de_de". The English dictionary is working, but neovim complains that it cannot find the German ones. Is there some best practice on how to include custom spell files in the NixVim build?

@Justin-Burg
Copy link

I don't know about best practices for the NixVim build, but this worked for me.

I just needed to use a different mirror (I picked ftp://ftp.de.vim.org/ from here.

@mirkolenz
Copy link
Contributor

Thanks for the hint, I never looked at the Vim entry in the NixOS wiki 😄

In case anyone is interested, I got it to work directly in NixVim via the following code snippet:

{ pkgs, lib, ... }:
let
  fileHashes = {
    "de.latin1.spl" = "sha256-iedU+cMNolKlNP6aSzTeDV/72DlnuqWccb/yb/UAw0I=";
    "de.latin1.sug" = "sha256-lT+tH0Hx0ZnUhp8IdsPm26tlNyIl+LoT7dAho0A74Fc=";
    "de.utf-8.spl" = "sha256-c8cQfqM5hWzb6SHeuSpFk5xN5uucByYdobndGfaDo9E=";
    "de.utf-8.sug" = "sha256-E9Ds+Shj2J72DNSopesqWhOg6Pm6jRxqvkerqFcUqUg=";
    "en.ascii.spl" = "sha256-zry6SJ1F2jNVlA80BYLiDONezc1E+cwWi+hz8I54JEk=";
    "en.ascii.sug" = "sha256-sNXQ7RlzX4NySO+XvMtEStcwNAsXhcj2qORFj2hyIWw=";
    "en.latin1.spl" = "sha256-Yg2e/Nec/J1jmBj7UoB+Pa5ho3yADWlKAQzVJaIWGEU=";
    "en.latin1.sug" = "sha256-5t6X5Lyz+bSq9+HrVKgbk5DVwjH0J/pL43mKJeRiKwI=";
    "en.utf-8.spl" = "sha256-/sq9yUm2o50ywImfolReqyXmPy7QozxK0VEUJjhNMHA=";
    "en.utf-8.sug" = "sha256-W25eYWVYLS/Xob+kH7zoJCxyR2IixV0XwqorqTPJMuw=";
  };
in
{
  extraFiles = lib.mapAttrs' (name: hash: {
    name = "spell/${name}";
    value.source = pkgs.fetchurl {
      url = "https://ftp.nluug.nl/vim/runtime/spell/${name}";
      inherit hash;
    };
  }) fileHashes;
}

@GaetanLepage
Copy link
Member

This looks really cool! Maybe we should maintain this index in Nixvim directly...

@GaetanLepage
Copy link
Member

Opened #3143

@biscotty666
Copy link
Author

Thanks mirkolenz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants