diff options
author | Hennadii Chernyshchyk <genaloner@gmail.com> | 2022-09-10 14:05:32 +0300 |
---|---|---|
committer | Hennadii Chernyshchyk <genaloner@gmail.com> | 2022-09-10 17:48:06 +0300 |
commit | fb10b4906aadaeff295883d171c05246943e5571 (patch) | |
tree | eae589c4aeb613b8a2e8a1daf678f008f01069b9 /plugin/tasks.lua | |
download | neovim-tasks-fb10b4906aadaeff295883d171c05246943e5571.tar.gz neovim-tasks-fb10b4906aadaeff295883d171c05246943e5571.zip |
Initial commit
Diffstat (limited to 'plugin/tasks.lua')
-rw-r--r-- | plugin/tasks.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/tasks.lua b/plugin/tasks.lua new file mode 100644 index 0000000..bcbd305 --- /dev/null +++ b/plugin/tasks.lua | |||
@@ -0,0 +1,8 @@ | |||
1 | if vim.version().minor < 7 then | ||
2 | require('tasks.utils').notify('Neovim 0.7+ is required for tasks plugin', vim.log.levels.ERROR) | ||
3 | return | ||
4 | end | ||
5 | |||
6 | local subcommands = require('tasks.subcommands') | ||
7 | |||
8 | vim.api.nvim_create_user_command('Task', subcommands.run, { nargs = '*', complete = subcommands.complete, desc = 'Run or configure a task' }) | ||