chore(nvim): a bunch of things

This commit is contained in:
Afonso Franco 2024-03-17 12:32:47 +00:00
parent 9d8f5b9f53
commit b375840efb
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
13 changed files with 513 additions and 377 deletions

View file

@ -1,17 +1,22 @@
local dap = require("dap")
dap.adapters.lldb = {
type = 'server',
port = "${port}",
executable = {
command = '/Users/afonso/.local/share/nvim/mason/bin/codelldb',
args = {"--port", "${port}"},
}
type = 'server',
port = "${port}",
executable = {
command = '/Users/afonso/.local/share/nvim/mason/bin/codelldb',
args = { "--port", "${port}" },
}
}
dap.adapters.codelldb = {
type = 'server',
host = '127.0.0.1',
port = 13000
}
dap.configurations.c = {
{
name = "codelldb: With args",
name = "Manually start codelldb",
type = "codelldb",
request = "launch",
program = function()
@ -24,6 +29,19 @@ dap.configurations.c = {
cwd = '${workspaceFolder}',
stopOnEntry = false,
},
{
name = "Auto start codelldb",
type = "lldb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
args = function()
local args = vim.fn.input('Arguments: ')
return args ~= '' and { args } or nil
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
},
}