fixed typo in neovim config
This commit is contained in:
@@ -387,7 +387,7 @@
|
|||||||
|
|
||||||
vnoremap s :call Rust_toggle_comment()<Enter>
|
vnoremap s :call Rust_toggle_comment()<Enter>
|
||||||
|
|
||||||
cnoreabbrev c call Cargo_ceck()
|
cnoreabbrev c call Cargo_check()
|
||||||
cnoreabbrev r call Cargo_run()
|
cnoreabbrev r call Cargo_run()
|
||||||
cnoreabbrev b call Cargo_build()
|
cnoreabbrev b call Cargo_build()
|
||||||
|
|
||||||
@@ -411,11 +411,16 @@
|
|||||||
autocmd TermOpen * nnoremap <buffer> J :lua Cargo_jump()<Enter>
|
autocmd TermOpen * nnoremap <buffer> J :lua Cargo_jump()<Enter>
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
function Cargo_ceck()
|
function Cargo_check()
|
||||||
:w
|
:w
|
||||||
:belowright 20split term://cargo check
|
:belowright 20split term://cargo check
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function Cargo_check_mize()
|
||||||
|
:w
|
||||||
|
:belowright 20split term://cargo check --bin mize --features os-binary
|
||||||
|
endfunction
|
||||||
|
|
||||||
function Rust_toggle_comment()
|
function Rust_toggle_comment()
|
||||||
let line=getline('.')
|
let line=getline('.')
|
||||||
let chars = split(line, '\zs')
|
let chars = split(line, '\zs')
|
||||||
|
|||||||
Reference in New Issue
Block a user