Skip to content

zed-editor codebook for Latex files doesn't support suggestions #165

@Yeshey

Description

@Yeshey

In zed editor, while in other languages CTRL + . gives me suggestions for the correct word, in latex I don't get any.

And I'm getting [codebook_lsp::lsp] DEBUG: Document identified as type None from None:

[codebook_lsp] INFO: Starting Codebook Language Server v0.3.18-release...
[codebook_config] INFO: No global config found, using default
[codebook_config] INFO: No project config found, using default
[codebook_downloader] INFO: Cache folder at: "/tmp/codebook"
[codebook_lsp::lsp] INFO: LSP logger attached to client with log level: DEBUG
[codebook_lsp::lsp] INFO: Server ready!
[codebook_lsp::lsp] INFO: Project config: /home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/codebook.toml
[codebook_lsp::lsp] INFO: Global config: /home/yeshey/.config/codebook/codebook.toml
[codebook_lsp::lsp] DEBUG: Opened document: uri Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/README.md", query: None, fragment: None }, language: markdown, version: 0
[codebook_lsp::lsp] DEBUG: Checking file: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/README.md", query: None, fragment: None }
[codebook_lsp::lsp] DEBUG: Spell-checking file: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/README.md"
[codebook_lsp::lsp] DEBUG: Document identified as type Some(Text) from Some("markdown")
[codebook] DEBUG: Checking text with dictionaries: ["en_us", "codebook", "software_terms", "computing_acronyms"]
[codebook_lsp::lsp] DEBUG: Opened document: uri Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/codebook.js", query: None, fragment: None }, language: javascript, version: 0
[codebook_lsp::lsp] DEBUG: Checking file: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/codebook.js", query: None, fragment: None }
[codebook_lsp::lsp] DEBUG: Spell-checking file: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/codebook.js"
[codebook_lsp::lsp] DEBUG: Document identified as type Some(Javascript) from Some("javascript")
[codebook] DEBUG: Checking text with dictionaries: ["en_us", "javascript", "javascriptreact", "codebook", "software_terms", "computing_acronyms"]
[codebook::dictionaries::manager] DEBUG: Failed to get repo for dictionary, skipping: javascript
[codebook::dictionaries::manager] DEBUG: Failed to get repo for dictionary, skipping: javascriptreact
[codebook_lsp::lsp] DEBUG: Saved document: file:///home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/src/chapter1_introduction.tex
[codebook_lsp::lsp] DEBUG: Checking file: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/src/chapter1_introduction.tex", query: None, fragment: None }
[codebook_lsp::lsp] DEBUG: Spell-checking file: "/home/yeshey/PersonalFiles/2025/Masters/Dissertacao/Dissertation-AI-safety/src/chapter1_introduction.tex"
[codebook_lsp::lsp] DEBUG: Document identified as type None from None
[codebook] DEBUG: Checking text with dictionaries: ["en_us", "latex", "codebook", "software_terms", "computing_acronyms"]
[codebook::dictionaries::manager] DEBUG: Failed to get repo for dictionary, skipping: latex

I'm in nixOS with this configuration:

    programs.zed-editor = {
      enable = true;
      extensions = [
        "nix"
        "toml"
        "rust"
        "latex"
        "react-typescript-snippets"
        "codebook"
      ];
      userSettings = {
        hour_format = "hour24";
        # vim_mode = true;
        # Tell Zed to use direnv and direnv can use a flake.nix environment
        load_direnv = "shell_hook";
        base_keymap = "VSCode";

        # Auto-save after 1 sec of inactivity
        autosave = {
          after_delay = {
            milliseconds = 1000;
          };
        };

        # ---------- LaTeX ----------
        # LaTeX
        lsp = {
          texlab = {
            settings = {
              texlab = {
                build = {
                  onSave = true;
                  forwardSearchAfter = true;
                  executable = "latexmk";
                  args = [
                    "--shell-escape"
                    "-f"
                    "-synctex=1"
                    "-interaction=nonstopmode"
                    "-file-line-error"
                    "-lualatex"
                    "%f"
                  ];
                };
                forwardSearch = {
                  executable = "okular";
                  args = [
                    "--unique"
                    "%p#src:%l%f"
                  ];
                };
              };
            };
          };
          "codebook" = {
            "initialization_options" = {
              "logLevel" = "debug";
            };
          };
        };

        languages = {
          "LaTeX" = {
            # Enable word wrap for LaTeX files only
            soft_wrap = "editor_width";
          };
        };

      };
    };

This might be related with these issues:

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