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('DapBreakpoint', { text = 'ᛒ', texthl = '', lineh = '', numhl = '' })
|
||||||
vim.fn.sign_define('DapBreakpointCondition', { text = '🝌', texthl = '', lineh = '', numhl = '' })
|
vim.fn.sign_define('DapBreakpointCondition', { text = '🝌', texthl = '', lineh = '', numhl = '' })
|
||||||
vim.fn.sign_define('DapStopped', { text = '⮞' })
|
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,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|||||||
@ -59,10 +59,10 @@ return {
|
|||||||
settings = {
|
settings = {
|
||||||
['rust-analyzer'] = {
|
['rust-analyzer'] = {
|
||||||
checkOnSave = true,
|
checkOnSave = true,
|
||||||
check = {
|
-- check = {
|
||||||
command = 'clippy',
|
-- command = 'clippy',
|
||||||
extraArgs = { '--', '-Dclippy::all', '-Wclippy::pedantic' },
|
-- extraArgs = { '--', '-Dclippy::all', '-Wclippy::pedantic' },
|
||||||
},
|
-- },
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = true,
|
enable = true,
|
||||||
experimental = {
|
experimental = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user