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
.msg
file
.srv
file
.action
file
- Telescope extension that adds pickers for ROS 2 components
- Configure
*.action
,*.msg
, and*.srv
files asros
filetype - Configure
*.launch
,*.xacro
, and*.urdf
files asxml
filetype
{
"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.