its almost some good

This commit is contained in:
Christoph J. Scherr 2024-02-05 16:47:13 +01:00
parent 6b14039e40
commit 52c1f29804
3 changed files with 20 additions and 23 deletions

View File

@ -2,7 +2,7 @@ local opt = vim.opt
local g = vim.g local g = vim.g
g.maplocalleader = ";" g.maplocalleader = ";"
opt.mouse = "" -- hardcore vim mode, disable the mouse opt.mouse = "a" -- mouse does annoying things for me if it's not 'a'
opt.signcolumn = "yes" opt.signcolumn = "yes"
opt.clipboard = "" -- don't just use the system clipboard opt.clipboard = "" -- don't just use the system clipboard
opt.wrap = false opt.wrap = false

View File

@ -629,16 +629,23 @@ M.debug = {
local my_sidebar = widgets.sidebar(widgets.frames) local my_sidebar = widgets.sidebar(widgets.frames)
my_sidebar.open() my_sidebar.open()
end, end,
"debug window scopes", "debug window frames",
noremap = true, noremap = true,
}, },
["<leader>dK"] = { ["<leader>dK"] = {
function() function()
require('dap.ui.widgets').hover() require("dap.ui.widgets").hover()
end, end,
"debug hover", "debug hover",
noremap = true, noremap = true,
}, },
["<leader>du"] = {
function()
require("dapui").toggle()
end,
"debug ui toggle",
noremap = true,
},
}, },
} }

View File

@ -735,24 +735,12 @@ local plugins = {
end, end,
config = function() config = function()
local dap = require "dap" local dap = require "dap"
-- dap.adapters.gdb = { local rustcfg = require "rustaceanvim.config"
-- type = "executable", local mason_registry = require "mason-registry"
-- command = "gdb", local codelldb_root = mason_registry.get_package("codelldb"):get_install_path() .. "/extension/"
-- args = { "-i", "dap" }, -- NOTE: gdb sometimes has no built in dap interface, LMDE6 has this i local codelldb_path = codelldb_root .. "adapter/codelldb"
-- -- think. Don't bother with compiling from source local liblldb_path = codelldb_root .. "lldb/lib/liblldb.so"
-- } dap.adapters.codelldb = rustcfg.get_codelldb_adapter(codelldb_path, liblldb_path)
dap.adapters.codelldb = {
type = "server",
port = "${port}",
executable = {
-- CHANGE THIS to your path!
command = "/home/plex/.local/share/codelldb/extension/adapter/codelldb",
args = { "--port", "${port}" },
-- On windows you may have to uncomment this:
-- detached = false,
},
}
dap.configurations.cpp = { dap.configurations.cpp = {
{ {
name = "Launch file", name = "Launch file",
@ -771,8 +759,10 @@ local plugins = {
}, },
{ {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",
enabled = false, enabled = true,
lazy = false, init = function()
require("core.utils").load_mappings "debug"
end,
dependencies = { dependencies = {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
}, },