Skip to content

docs(tip-and-tricks): Neovim LSP setup guide#576

Open
DudeNr33 wants to merge 2 commits intorobotcodedev:mainfrom
DudeNr33:docs/neovim-setup-guide
Open

docs(tip-and-tricks): Neovim LSP setup guide#576
DudeNr33 wants to merge 2 commits intorobotcodedev:mainfrom
DudeNr33:docs/neovim-setup-guide

Conversation

@DudeNr33
Copy link

@DudeNr33 DudeNr33 commented Mar 3, 2026

Hi @d-biehl,
as discussed at RoboCon I created a small guide how to get LSP working inside Neovim with properly resolving keywords from third party libraries.

For the "globally" installed RobotCode option I chose a slightly different approach compared to the way the VS Code plugin handles it: instead of using the Python interpreter of the project and adding the bundled RobotCode installation to the PYTHONPATH, it uses the RobotCode installed via Mason and adds the virtual environment of the project to the PYTHONPATH.

Mason has deprecated their APIs to find the installation directory of the packages it manages and explicitly states the directory structure is not treated as stable interface and may change, thus this should be the more robust approach.

Tested on both Linux and Windows.

I am open to where in the docs this should go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant