From 0a67458d1731e53e416c24cf9542ee35df29dbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Mon, 13 Mar 2023 03:45:50 +0100 Subject: [PATCH] Add support for tasks.json, load all launch.json configs --- init.lua | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index fbc2a61..5f888c4 100644 --- a/init.lua +++ b/init.lua @@ -155,7 +155,8 @@ local config = { mappings = { -- first key is the mode n = { - ["fT"] = { function() require("telescope.builtin").colorscheme { enable_preview = true } end, desc = "Find themes" }, + ["fT"] = { function() require("telescope.builtin").colorscheme { enable_preview = true } end, desc = + "Find themes" }, -- second key is the lefthand side of the map -- mappings seen under group name "Buffer" ["bb"] = { "tabnew", desc = "New tab" }, @@ -179,10 +180,8 @@ local config = { -- Debugger mappings ["d"] = { name = "Debugger" }, - ["dl"] = { name = "Load launch.json" }, - -- Config loading - ["dlc"] = { function() require("dap.ext.vscode").load_launchjs(nil, { cppdbg = { "c", "cpp", "asm" } }) end, desc = - "C/C++/asm" }, + -- Load launch.json for all supported languages + ["dl"] = { function() require("dap.ext.vscode").load_launchjs(nil, nil) end, desc = "Load launch.json" }, -- Function keys mappings [""] = { function() require("dap").continue() end, desc = "Debugger: Start" }, [""] = { function() require("dap").terminate() end, desc = "Debugger: Stop" }, -- Shift+F5 @@ -210,13 +209,11 @@ local config = { -- Dap-UI ["du"] = { function() require("dapui").toggle() end, desc = "Toggle Debugger UI" }, ["dh"] = { function() require("dap.ui.widgets").hover() end, desc = "Debugger Hover" }, - -- Mardown preview ["m"] = { name = "Markdown" }, ["mp"] = { "MarkdownPreview", desc = "Markdown preview" }, ["ms"] = { "MarkdownPreviewStop", desc = "Markdown preview stop" }, ["mt"] = { "MarkdownPreviewToggle", desc = "Markdown preview toggle" }, - -- Vimtex mappings ["x"] = { name = "LaTeX" }, ["xi"] = { "VimtexInfo", desc = "Info" }, @@ -241,7 +238,6 @@ local config = { ["xX"] = { "VimtexReloadState", desc = "Reload the state for the current buffer" }, ["xs"] = { "VimtexToggleMain", desc = "Set current file as 'current project'" }, ["xa"] = { "VimtexContextMenu", desc = "Show context menu" }, - -- Trouble, Taglist ["ft"] = { desc = false, name = "Trouble, Tagbar" }, -- Taglist @@ -484,6 +480,16 @@ local config = { end, }, + -- Tasks.json + { + "stevearc/overseer.nvim", + cmd = { "OverseerOpen", "OverseerClose", "OverseerToggle", "OverseerSaveBundle", "OverseerLoadBundle", + "OverseerDeleteBundle", "OverseerRunCmd", "OverseerRun", "OverseerInfo", "OverseerBuild", "OverseerQuickAction", + "OverseerTaskAction ", "OverseerClearCache" }, + opts = {} + }, + + -- { -- "ray-x/lsp_signature.nvim", -- event = "BufRead",