Shatur / neovim-cmake

CMake integration for Neovim
GNU General Public License v3.0
87 stars 19 forks source link

Add support for select target callback #48

Open xubury opened 2 years ago

xubury commented 2 years ago

Although select_target does not return a plenary job, but it use vim.ui.select which can use callback on confirm. These commits add a after callback for that, so you can do something like select target and build

Shatur commented 2 years ago

I'm not sure I like this idea. This makes API more bloated. There is no issue in having two shortcuts, one for build and another to select a target. You will need then anyway.