Changes to DAP to include a Rust configuration and removal of pedantic settings for Clippy
This commit is contained in:
parent
feb0ae8446
commit
b88c541140
@ -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 = {
|
||||
{
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user