diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-03-18 23:00:52 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-03-18 23:00:52 +0200 |
| commit | b15a0fc79038399c9c61975372620330af67fb4d (patch) | |
| tree | a7761a6ab6da0798490b203e05c0a03cb151a0ef /lua/plugins/dap.lua | |
| parent | 7b730d6b7b016d5cd602f280f879602ab44f59bd (diff) | |
| download | dotfiles-b15a0fc79038399c9c61975372620330af67fb4d.tar.gz dotfiles-b15a0fc79038399c9c61975372620330af67fb4d.zip | |
Clean config
Diffstat (limited to 'lua/plugins/dap.lua')
| -rw-r--r-- | lua/plugins/dap.lua | 177 |
1 files changed, 0 insertions, 177 deletions
diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index 2fb4333..5285ca1 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -1,180 +1,3 @@ ---local status, dap = pcall(require,"dap") ---if (not status) then return end ---local status2, dapui = pcall(require,"dapui") ---if (not status2) then return end ---local status3, daptext = pcall(require,"nvim-dap-virtual-text") ---if (not status3) then return end --- ---dapui.setup() ---daptext.setup({}) --- ---vim.fn.sign_define('DapBreakpoint', {text='🔴'}) ---vim.fn.sign_define('DapStopped', {text='🟢'}) --- ---dap.listeners.after.event_initialized["dapui_config"] = function () --- dapui.open() ---end ---dap.listeners.before.event_terminated["dapui_config"] = function () --- dapui.close() ---end ---dap.listeners.before.event_exited["dapui_config"] = function () --- dapui.close() ---end --- ----- --- Adapters --- -- --- ----- CPP Setup ---dap.adapters.cppdbg = { --- id = 'cppdbg', --- type = 'executable', --- command = os.getenv("USERPROFILE") .. '\\dap_adapters\\cpptools\\extension\\debugAdapters\\bin\\OpenDebugAD7.exe', --- options = { --- detached = false --- } ---} --- ---dap.adapters.codelldb = { --- type = 'server', --- port = "${port}", --- executable = { --- -- CHANGE THIS to your path! --- command = os.getenv("USERPROFILE") .. "\\dap_adapters\\codelldb\\extension\\adapter\\codelldb", --- args = {"--port", "${port}"}, --- --- -- On windows you may have to uncomment this: --- detached = false, --- } ---} --- ----- --- configurations --- -- --- ----- CPP Setup ---dap.configurations.cpp = { --- { --- name = "DBG Debug", --- type = "cppdbg", --- request = "launch", --- program = function() --- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') --- end, --- cwd = '${workspaceFolder}', --- stopAtEntry = true --- }, --- { --- name = "LLDB Debug", --- type = "codelldb", --- request = "launch", --- program = function() --- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') --- end, --- cwd = '${workspaceFolder}', --- stopOnEntry = false --- } ---} --- ---dap.configurations.c = dap.configurations.cpp ---dap DAP setup commands. --- --- ---Trevor Gray ---Covert this to lua (local dap (require :dap)) ---(local dapui (require :dapui)) ---(dapui.setup) --- ---(vim.api.nvim_set_hl 0 :DapBreakpoint {:ctermbg 0 :fg "#993939" :bg "#31353f"}) --- ---(vim.api.nvim_set_hl 0 :DapBreakpointLine {:bg "#251215"}) --- ---(vim.api.nvim_set_hl 0 :DapLogPoint {:ctermbg 0 :fg "#61afef" :bg "#31353f"}) --- ---(vim.api.nvim_set_hl 0 :DapLogPointLine {:bg "#252849"}) --- ---(vim.api.nvim_set_hl 0 :DapStopped {:ctermbg 0 :fg "#98c379" :bg "#31353f"}) ---(vim.api.nvim_set_hl 0 :DapStoppedLine {:bg "#15171B"}) --- ---(vim.fn.sign_define :DapBreakpoint --- {:text "" --- :texthl :DapBreakpoint --- :linehl :DapBreakpointLine --- :numhl :DapBreakpoint}) --- ---(vim.fn.sign_define :DapBreakpointCondition --- {:text "ﳁ" --- :texthl :DapBreakpoint --- :linehl :DapBreakpointLine --- :numhl :DapBreakpoint}) --- ---(vim.fn.sign_define :DapBreakpointRejected --- {:text "" --- :texthl :DapBreakpoint --- :linehl :DapBreakpointLine --- :numhl :DapBreakpoint}) --- ---(vim.fn.sign_define :DapLogPoint --- {:text "" --- :texthl :DapLogPoint --- :linehl :DapLogPointLine --- :numhl :DapLogPoint}) --- ---(vim.fn.sign_define :DapStopped --- {:text "" --- :texthl :DapStopped --- :linehl :DapStoppedLine --- :numhl :DapStopped}) --- ---(tset dap.listeners.after.event_initialized :dapui_config dapui.open) --- ---(tset dap.listeners.before.event_terminated :dapui_config dapui.close) --- ---(tset dap.listeners.before.event_exited :dapui_config dapui.close) --- ---(set dap.adapters.lldb {:type :executable --- :attach {:pidProperty :pid :pidSelect :ask} --- :command :lldb-vscode --- :env {:LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY :YES} --- :name :lldb}) --- ---local dap = require("dap") ---local dapui = require("dapui") ---dapui.setup() --- ---vim.api.nvim_set_hl(0, "DapBreakpoint", {ctermbg = 0, fg = "#993939", bg = "#31353f"}) ---vim.api.nvim_set_hl(0, "DapBreakpointLine", {bg = "#251215"}) ---vim.api.nvim_set_hl(0, "DapLogPoint", {ctermbg = 0, fg = "#61afef", bg = "#31353f"}) ---vim.api.nvim_set_hl(0, "DapLogPointLine", {bg = "#252849"}) ---vim.api.nvim_set_hl(0, "DapStopped", {ctermbg = 0, fg = "#98c379", bg = "#31353f"}) ---vim.api.nvim_set_hl(0, "DapStoppedLine", {bg = "#15171B"}) --- ---vim.fn.sign_define("DapBreakpoint", {text = "", texthl = "DapBreakpoint", linehl = "DapBreakpointLine", numhl = "DapBreakpoint"}) ---vim.fn.sign_define("DapBreakpointCondition", {text = "ﳁ", texthl = "DapBreakpoint", linehl = "DapBreakpointLine", numhl = "DapBreakpoint"}) ---vim.fn.sign_define("DapBreakpointRejected", {text = "", texthl = "DapBreakpoint", linehl = "DapBreakpointLine", numhl = "DapBreakpoint"}) ---vim.fn.sign_define("DapLogPoint", {text = "", texthl = "DapLogPoint", linehl = "DapLogPointLine", numhl = "DapLogPoint"}) ---vim.fn.sign_define("DapStopped", {text = "", texthl = "DapStopped", linehl = "DapStoppedLine", numhl = "DapStopped"}) --- ---dap.listeners.after.event_initialized["dapui_config"] = function() ---dapui.open() ---end --- ---dap.listeners.before.event_terminated["dapui_config"] = function() ---dapui.close() ---end --- ---dap.listeners.before.event_exited["dapui_config"] = function() ---dapui.close() ---end --- ---dap.adapters.lldb = ({ --- type = "executable", --- attach = { --- pidProperty = "pid", --- pidSelect = "ask", --- }, --- command = "lldb-vscode", --- env = { --- LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY = "YES", --- }, --- name = "lldb" ---}).configurations.rust == dap.configurations.cpp local dap_ok, dap = pcall(require, "dap") if not (dap_ok) then print("nvim-dap not installed!") |
