Skip to content

narodnik/rust-fold-functions.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Just add the code here to your .vimrc or init.vim file.

This code will show the function signatures but just hide the code inside like so:

fn foo(
    value: int
) {
+-- 19 lines: let x = vec![1, 2, 3];---------------------------------

Use zr/zm to toggle.

About

Correct Folding of Rust Functions in VIM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published