From 1740b437c0232bdd3e5f63fdcad0d4d36afa8ae4 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 27 Apr 2024 16:22:42 +0300 Subject: [PATCH] neovim/spellcheck: disable programming wordlist errors as it cannot download its spellfile. needs to be fixed --- configuration.nix | 1 - modules/modules.nix | 2 +- modules/neovim/init/spellcheck.nix | 5 +++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 8616bc1..268769c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -31,7 +31,6 @@ inputs: let spellcheck = { enable = isMaximal; - programmingWordlist.enable = isMaximal; }; lsp = { diff --git a/modules/modules.nix b/modules/modules.nix index 22bc84a..620111f 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -34,7 +34,7 @@ "rich-presence" "session" "snippets" - "spellcheck" + # "spellcheck" # FIXME: see neovim/init/spellcheck.nix "statusline" "tabline" "terminal" diff --git a/modules/neovim/init/spellcheck.nix b/modules/neovim/init/spellcheck.nix index 7a41f25..d8957ef 100644 --- a/modules/neovim/init/spellcheck.nix +++ b/modules/neovim/init/spellcheck.nix @@ -43,6 +43,10 @@ in { ''; }; + /* + # FIXME: This needs to be revisited. It tries to install + # the spellfile to an user directory, but it cannot do so + # as we sanitize runtime paths. programmingWordlist.enable = mkEnableOption '' vim-dirtytalk, a wordlist for programmers containing common programming terms. @@ -50,6 +54,7 @@ in { Setting this value as `true` has the same effect as setting {option}`vim.spellCheck.enable` ''; + */ }; config = mkIf cfg.enable {