Advertisement
jamesonBradfield

Nivm-vs-tasks.lua

May 19th, 2024
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.07 KB | None | 0 0
  1. return {
  2.   -- TODO: get vs-tasks working for C# debugging in godot
  3.   'jamesonBradfield/vs-tasks.nvim',
  4.   lazy = false,
  5.   dependencies = {
  6.     'nvim-lua/popup.nvim',
  7.     'nvim-lua/plenary.nvim',
  8.     'nvim-telescope/telescope.nvim',
  9.     { 'akinsho/toggleterm.nvim', config = true },
  10.   },
  11.  
  12.   keys = {
  13.     {
  14.       '<leader>Tt',
  15.       mode = { 'n', 'x', 'o' },
  16.       function()
  17.         require('telescope').extensions.vstask.tasks()
  18.       end,
  19.       desc = '[t]asks',
  20.     },
  21.     {
  22.       '<leader>Ti',
  23.       mode = { 'n', 'x', 'o' },
  24.       function()
  25.         require('telescope').extensions.vstask.inputs()
  26.       end,
  27.       desc = '[i]nputs',
  28.     },
  29.     {
  30.       '<leader>Th',
  31.       mode = { 'n', 'x', 'o' },
  32.       function()
  33.         require('telescope').extensions.vstask.history()
  34.       end,
  35.       desc = '[h]istory',
  36.     },
  37.     {
  38.       '<leader>Tl',
  39.       mode = { 'n', 'x', 'o' },
  40.       function()
  41.         require('telescope').extensions.vstask.launch()
  42.       end,
  43.       desc = '[l]aunch',
  44.     },
  45.   },
  46.   config = function()
  47.     require('vstask').setup {
  48.       cache_json_conf = true, -- don't read the json conf every time a task is ran
  49.       cache_strategy = 'last', -- can be "most" or "last" (most used / last used)
  50.       config_dir = '.vscode', -- directory to look for tasks.json and launch.json
  51.       use_harpoon = true, -- use harpoon to auto cache terminals
  52.       telescope_keys = { -- change the telescope bindings used to launch tasks
  53.         vertical = '<C-v>',
  54.         split = '<C-p>',
  55.         tab = '<C-t>',
  56.         current = '<CR>',
  57.       },
  58.       autodetect = { -- auto load scripts
  59.         npm = 'on',
  60.       },
  61.       terminal = 'toggleterm',
  62.       term_opts = {
  63.         vertical = {
  64.           direction = 'vertical',
  65.           size = '80',
  66.         },
  67.         horizontal = {
  68.           direction = 'horizontal',
  69.           size = '10',
  70.         },
  71.         current = {
  72.           direction = 'float',
  73.         },
  74.         tab = {
  75.           direction = 'tab',
  76.         },
  77.       },
  78.       json_parser = 'vim.fn.json.decode',
  79.     }
  80.   end,
  81. }
  82.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement