feat: up flake, configure dap for rust and change some neovim defaults

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2024-02-16 20:40:28 -03:00
parent 9429111cee
commit 33cd62170b
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
7 changed files with 39 additions and 47 deletions

View file

@ -0,0 +1,10 @@
return {
codelldb = {
type = "server",
port = "${port}",
executable = {
command = "codelldb",
args = { "--port", "${port}" },
},
},
}

View file

@ -0,0 +1,12 @@
return {
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,
},
},
}