feat: up flake, configure dap for rust and change some neovim defaults
This commit is contained in:
parent
9429111cee
commit
33cd62170b
7 changed files with 39 additions and 47 deletions
|
@ -1,28 +0,0 @@
|
|||
return {
|
||||
"mfussenegger/nvim-dap",
|
||||
opts = function(_, config)
|
||||
local dap = require("dap")
|
||||
|
||||
dap.adapters.codelldb = {
|
||||
type = "server",
|
||||
port = "${port}",
|
||||
executable = {
|
||||
command = "codelldb",
|
||||
args = { "--port", "${port}" },
|
||||
}
|
||||
}
|
||||
|
||||
dap.configurations.rust = {
|
||||
{
|
||||
name = "Launch file",
|
||||
type = "codelldb",
|
||||
request = "launch",
|
||||
program = function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end,
|
||||
cwd = '${workspaceFolder}',
|
||||
stopOnEntry = false,
|
||||
}
|
||||
}
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue