Skip to content

Configuration

Viet Dinh edited this page Aug 27, 2023 · 5 revisions

Local configuration file

You can define an .odoo_lsp or .odoo_lsp.json file which defines the same options to odoo-lsp as you would in VSCode. For example:

// in .odoo_lsp
{
  "module": {
    "roots": ["foo", "bar"]
  }
}

This tells odoo-lsp to index only the roots specified, and only index other modules as needed, ignoring workspace folders and root files.

Options

odoo-lsp.module.roots

Accepts a list of paths (can be globbed) of roots to index, similar to --addons-path.

odoo-lsp.symbols.limit

The maximum number of items to show in the workspace symbols browser.

Clone this wiki locally