@@ -822,6 +822,39 @@ func SelectPopupmenuItem(item int, insert, finish bool, opts map[string]interfac
822822 name (nvim_select_popupmenu_item )
823823}
824824
825+ // DeleteMark deletes a uppercase/file named mark.
826+ // See |help mark-motions|.
827+ func DeleteMark (name string ) (deleted bool ) {
828+ name (nvim_del_mark )
829+ }
830+
831+ // Mark returns a tuple (row, col, buffer, buffername) representing the position of
832+ // the uppercase/file named mark.
833+ // See |help mark-motions|.
834+ //
835+ // opts is optional parameters. Reserved for future use.
836+ func Mark (name string , opts map [string ]interface {}) (mark Mark ) {
837+ name (nvim_get_mark )
838+ returnPtr ()
839+ }
840+
841+ // EvalStatusLine evaluates statusline string.
842+ //
843+ // opts optional parameters.
844+ // winid (int)
845+ // Window ID of the window to use as context for statusline.
846+ // maxwidth (int)
847+ // Maximum width of statusline.
848+ // fillchar (string)
849+ // Character to fill blank spaces in the statusline (see 'fillchars').
850+ // highlights (bool)
851+ // Return highlight information.
852+ // use_tabline (bool)
853+ // Evaluate tabline instead of statusline. When true, {winid} is ignored.
854+ func EvalStatusLine (name string , opts map [string ]interface {}) (statusline map [string ]interface {}) {
855+ name (nvim_eval_statusline )
856+ }
857+
825858// buffer.c
826859
827860// BufferLineCount gets the buffer line count.
@@ -1022,6 +1055,23 @@ func IsBufferValid(buffer Buffer) (valied bool) {
10221055 name (nvim_buf_is_valid )
10231056}
10241057
1058+ // DeleteBufferMark deletes a named mark in the buffer.
1059+ // See |help mark-motions|.
1060+ func DeleteBufferMark (buffer Buffer , name string ) (deleted bool ) {
1061+ name (nvim_buf_del_mark )
1062+ }
1063+
1064+ // SetBufferMark sets a named mark in the given buffer, all marks are allowed
1065+ // file/uppercase, visual, last change, etc.
1066+ // See |help mark-motions|.
1067+ //
1068+ // line and col are (1,0)-indexed.
1069+ //
1070+ // opts is optional parameters. Reserved for future use.
1071+ func SetBufferMark (buffer Buffer , name string , line , col int , opts map [string ]interface {}) (set bool ) {
1072+ name (nvim_buf_set_mark )
1073+ }
1074+
10251075// BufferMark return a tuple (row,col) representing the position of the named mark.
10261076//
10271077// Marks are (1,0)-indexed.
0 commit comments