Changes to DAP to include a Rust configuration and removal of pedantic settings for Clippy

This commit is contained in:
Finch 2024-03-11 19:22:15 -05:00
parent feb0ae8446
commit b88c541140
2 changed files with 23 additions and 4 deletions

View File

@ -69,6 +69,25 @@ return {
vim.fn.sign_define('DapBreakpoint', { text = '', texthl = '', lineh = '', numhl = '' })
vim.fn.sign_define('DapBreakpointCondition', { text = '🝌', texthl = '', lineh = '', numhl = '' })
vim.fn.sign_define('DapStopped', { text = '' })
dap.adapters.gdb = {
type = 'executable',
command = 'gdb',
args = { '-i', 'dap' }
}
dap.configurations.rust = {
{
name = 'Launch',
type = 'gdb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopAtBeginningOfMainSubprogram = false,
},
}
end,
keys = {
{

View File

@ -59,10 +59,10 @@ return {
settings = {
['rust-analyzer'] = {
checkOnSave = true,
check = {
command = 'clippy',
extraArgs = { '--', '-Dclippy::all', '-Wclippy::pedantic' },
},
-- check = {
-- command = 'clippy',
-- extraArgs = { '--', '-Dclippy::all', '-Wclippy::pedantic' },
-- },
diagnostics = {
enable = true,
experimental = {