diff --git a/programs/neovim.nix b/programs/neovim.nix index 3ed6079..031a2cd 100644 --- a/programs/neovim.nix +++ b/programs/neovim.nix @@ -387,7 +387,7 @@ vnoremap s :call Rust_toggle_comment() - cnoreabbrev c call Cargo_ceck() + cnoreabbrev c call Cargo_check() cnoreabbrev r call Cargo_run() cnoreabbrev b call Cargo_build() @@ -411,11 +411,16 @@ autocmd TermOpen * nnoremap J :lua Cargo_jump() augroup END - function Cargo_ceck() + function Cargo_check() :w :belowright 20split term://cargo check endfunction + function Cargo_check_mize() + :w + :belowright 20split term://cargo check --bin mize --features os-binary + endfunction + function Rust_toggle_comment() let line=getline('.') let chars = split(line, '\zs')