nvim: after/ftplugin/rust: Update makeprg

`--all` is deprecated and is just an alias to `--workspace`.
This commit is contained in:
Sanchayan Maity 2024-11-17 14:34:55 +05:30
parent deb5f2b7d4
commit cfe57543c6
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -4,7 +4,7 @@ local ra_config = lsp_utils.ra_config()
vim.lsp.start(ra_config) vim.lsp.start(ra_config)
vim.cmd.compiler('cargo') vim.cmd.compiler('cargo')
vim.bo.makeprg = 'cargo build --all' vim.bo.makeprg = 'cargo build --workspace'
vim.keymap.set('n', 'cbb', ":Dispatch! cargo build<CR>" , { noremap=true, buffer=0 }) vim.keymap.set('n', 'cbb', ":Dispatch! cargo build<CR>" , { noremap=true, buffer=0 })
vim.keymap.set('n', 'cbc', ":Dispatch! cargo clean<CR>" , { noremap=true, buffer=0 }) vim.keymap.set('n', 'cbc', ":Dispatch! cargo clean<CR>" , { noremap=true, buffer=0 })