fixed typo in neovim config

This commit is contained in:
Sebastian Moser
2024-05-20 23:55:45 +02:00
parent 4010508bf0
commit 61d79f5be7

View File

@@ -387,7 +387,7 @@
vnoremap s :call Rust_toggle_comment()<Enter>
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 <buffer> J :lua Cargo_jump()<Enter>
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')