Unlike the VSCode and PyCharm integrations, the Neovim integration does not bundle the OdooLS server binary. You must install the server separately before configuring the LSP client.
Prerequisites
- Neovim with nvim-lspconfig installed
- The OdooLS server binary installed on your system
- Install the VSCode extension or PyCharm plugin on another machine and copy the bundled binary, or
- Build the server from source — see Installation.
Setup
Install nvim-lspconfig
Add
nvim-lspconfig to your Neovim plugin manager if you have not already. For example, with lazy.nvim:Configure the OdooLS language server
Add the following to your Neovim configuration to set up OdooLS:Refer to the nvim-lspconfig documentation and the odoo-neovim repository for all available options.
Create a configuration file
Create an
odools.toml file at the root of your Odoo project workspace. OdooLS uses this file to locate your Odoo installation and addon directories. See Configuration.Installing the server binary
Because the Neovim integration does not bundle the server, you need theodoo-ls binary on your PATH. See Installation for instructions on building the server from source using Cargo.