nvim-ros2 is a simple lua plugin that adds useful features to enhance your development workflow while developing ROS 2 modules.
- Custom grammar with syntax highlights for ROS 2 interfaces following official conventions.
- After configuring the plugin, the grammar can be installed using
TSInstall ros2
.msgfile
.srvfile
.actionfile
- Telescope extension that adds pickers for ROS 2 components
- Configure
*.action,*.msg, and*.srvfiles asrosfiletype - Configure
*.launch,*.xacro, and*.urdffiles asxmlfiletype
{
"ErickKramer/nvim-ros2",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
"nvim-treesitter/nvim-treesitter",
},
opts = {
-- Add any custom options here
autocmds = true,
telescope = true,
treesitter = true,
}
},The functionalities here provided were validated using ROS 2 humble.








