From cbc2e089ef7417017354dedd40ac473ccc022bbd Mon Sep 17 00:00:00 2001 From: Ido Pesok Date: Thu, 2 Apr 2026 22:12:28 +0000 Subject: [PATCH] docs: document missing config options and fix manager_path bug Add documentation for the following config options that were missing from the README: - quiet: suppress completion error notifications - enable_local_search: enable local search in language server - enable_index_service: enable index service for workspace search - search_max_workspace_file_count: max files for search indexing - file_watch_max_dir_count: max directories for file watching - manager_path: custom language server manager directory - language_server_download_url: base URL for LS binary download Fix bug in api.lua where config.manager_path was used instead of config.options.manager_path, causing user-provided manager_path to be silently ignored. Co-Authored-By: Staging-Devin AI <166158716+staging-devin-ai-integration[bot]@users.noreply.github.com> --- README.md | 7 +++++++ lua/codeium/api.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d40476..df7537a 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,8 @@ You can globaly enable or disable Codeium Completion with `:Codeium Toggle` comm - `config_path`: the path to the config file, used to store the API key. - `bin_path`: the path to the directory where the Windsurf server will be downloaded to. +- `manager_path`: the path to the language server manager directory. Defaults to a temporary directory. Set this if you want a persistent manager directory across restarts. +- `language_server_download_url`: the base URL for downloading the language server binary. Defaults to `"https://github.com"`. - `api`: information about the API server to use: - `host`: the hostname. Example: `"codeium.example.com"`. Required when using enterprise mode - `port`: the port. Defaults to `443` @@ -84,7 +86,12 @@ You can globaly enable or disable Codeium Completion with `:Codeium Toggle` comm - `portal_url`: the portal URL to use (for enterprise mode). Defaults to `host:port` - `enterprise_mode`: enable enterprise mode - `detect_proxy`: enable or disable proxy detection +- `quiet`: defaults to `false`. Set `true` to suppress completion error notifications (e.g. on server errors or invalid responses) - `enable_chat`: enable chat functionality +- `enable_local_search`: defaults to `true`. Enable local search functionality in the language server +- `enable_index_service`: defaults to `true`. Enable the index service for workspace search +- `search_max_workspace_file_count`: defaults to `5000`. Maximum number of workspace files for search indexing (only used when `enable_index_service` is `true`) +- `file_watch_max_dir_count`: defaults to `50000`. Maximum number of directories the language server will watch for file changes - `enable_cmp_source`: defaults to true. Set `false` to disable registering a `cmp` source - `virtual_text`: configuration for showing completions in virtual text - `enabled`: defaults to `false`. Set `true` to enable the virtual text feature diff --git a/lua/codeium/api.lua b/lua/codeium/api.lua index cd5eddc..c37b1a9 100644 --- a/lua/codeium/api.lua +++ b/lua/codeium/api.lua @@ -207,7 +207,7 @@ function Server:start() return end - local manager_dir = config.manager_path + local manager_dir = config.options.manager_path if not manager_dir then manager_dir = io.tempdir("codeium/manager") vim.fn.mkdir(manager_dir, "p")