Skip to content

Default configuration difference with Zed extension #3

@kascote

Description

@kascote

Hi, I'm trying your extension with Neovim and it works okay, but out of the box doesn't work as I expected.

The documentation says to specify a --dictionary argument, that seems to be the dictionary where new words are added. If I don't add this argument, it seems the words are added to an in-memory dictionary because when I close and reload Neovim, the words are unrecognized again.

I have a cspell.json file in my root project folder that Zed is able to find and the new words are added there like

{
   "words": [
     "...",
   ]
}

I don't see that the Zed plugin is adding any configuration to the LSP, and out of the box it more or less works as I expect. Meaning, use the cspell dictionary defined, and have the ability to have a per-project dictionary.

Is there a way in Neovim and I think by extension Helix, to set it up like Zed does ? I was unable to find a way.

TIA
:: nelson

this is my cspell.json configuration
{
  "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
  "version": "0.2",
  "import": [
    "@cspell/dict-en_us/cspell-ext.json",
    "@cspell/dict-filetypes/cspell-ext.json",
    "@cspell/dict-git/cspell-ext.json",
    "@cspell/dict-lua/cspell-ext.json",
    "@cspell/dict-markdown/cspell-ext.json",
    "@cspell/dict-shell/cspell-ext.json",
    "@cspell/dict-software-terms/cspell-ext.json",
    "@cspell/dict-vim/cspell-ext.json"
  ],
  "useGitignore": true,
  "allowCompoundWords": true,
  "languageSettings": [
    {
      "languageId": "lua",
      "caseSensitive": false
    },
    {
      "languageId": "markdown",
      "caseSensitive": true
    }
  ],
  "dictionaryDefinitions": [
    {
      "name": "project-dict",
      "path": "./project-dict.txt",
      "addWords": true
    }
  ],
  "dictionaries": [
    "project-dict",
    "filetypes",
    "git",
    "lua",
    "markdown",
    "shell",
    "software-terms",
    "vim"
  ],
  "ignorePaths": [
    ".git",
    ".vscode",
    "queries",
    "spell"
  ],
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions