Add DAP, mini.align, leetcode plugins

This commit is contained in:
ant 2024-03-07 14:08:08 +01:00
parent 42d247dc62
commit 9df505886a
3 changed files with 76 additions and 1 deletions

18
lua/configs/dap.lua Normal file
View file

@ -0,0 +1,18 @@
local dap = require("dap")
dap.adapters.gdb = {
type = "executable",
command = "gdb",
args = { "-i", "dap" }
}
dap.configurations.c = {
{
name = "Launch",
type = "gdb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = "${workspaceFolder}",
},
}