From fb10b4906aadaeff295883d171c05246943e5571 Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Sat, 10 Sep 2022 14:05:32 +0300 Subject: Initial commit --- lua/tasks/config.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lua/tasks/config.lua (limited to 'lua/tasks/config.lua') diff --git a/lua/tasks/config.lua b/lua/tasks/config.lua new file mode 100644 index 0000000..0d5da61 --- /dev/null +++ b/lua/tasks/config.lua @@ -0,0 +1,32 @@ +local Path = require('plenary.path') + +local config = { + defaults = { + default_params = { + cmake = { + cmd = 'cmake', + build_dir = tostring(Path:new('{cwd}', 'build', '{os}-{build_type}')), + build_type = 'Debug', + dap_name = 'lldb', + args = { + configure = { '-D', 'CMAKE_EXPORT_COMPILE_COMMANDS=1', '-G', 'Ninja' }, + }, + }, + cargo = { + dap_name = 'lldb', + }, + }, + save_before_run = true, + params_file = 'neovim.json', + quickfix = { + pos = 'botright', + height = 12, + only_on_error = false, + }, + dap_open_command = function() return require('dap').repl.open() end, + }, +} + +setmetatable(config, { __index = config.defaults }) + +return config -- cgit v1.2.3