From 61d79f5be709ea7c6101f7ed22342c0f1819dd91 Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Mon, 20 May 2024 23:55:45 +0200 Subject: [PATCH] fixed typo in neovim config --- programs/neovim.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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')