This is my slightly updated version of settings for NeoVim Rust IDE with Catpuccin theme.
Other packages are required by listed above
To install run git clone https://github.com/gonardfreeman/rust-nvim-config.git ~/.config/nvim && nvim
<Leader>
means in normal mode you need to hit space and wait until menu will be opened
<F2>
- smart rename, VS code like
<Leader>rx
- smart rename, VS code like
<Leader>rx
- smart rename, VS code like
<Leader>rr
- run runnables. Same as:RustLsp runnables
. Build and run your code<Leader>rp
- run previous run.<Leader>rd
- run debuggables. Same as:RustLsp debuggables
. Build and debug your code<Leader>rc
- openCargo.toml
<F8>
- continue execution<F9>
- step into<F10>
- step over<Leader>db
- toggle breakpoint<Leader>dB
- set breakpoint<Leader>duo
- open dap ui
<Leader>gj
- next hunk<Leader>gk
- prev hunk<Leader>gs
- stage hunk<Leader>gp
- preview hunk<Leader>gu
- undo stage hunk
In order to setup dap you need lldb debugger on your system. Installation may vary from OS to OS, for example in mac you need to use brew, but for all systems you need to add it to PATH variable separately. Even if it works W/O adding it (at least it helped me).