Module nvimpam_lib::folds[][src]

This module provides the FoldList struct to manage folds in a buffer.

Example usage:

let mut foldlist = FoldList::new();
foldlist.checked_insert(1,2, Keyword::Node).map_err(|e| println!("{}", e));
assert!(foldlist.remove(2,3).is_err());
assert!(foldlist.remove(1,2).is_ok());

Structs

FoldList

Holds the fold data of the buffer. A fold has the following data: Linenumbers start, end (indexed from 1), and a Keyword.