@@ -589,6 +589,11 @@ func DeleteTabpageVar(tabpage Tabpage, name string) {
589589 name (nvim_tabpage_del_var )
590590}
591591
592+ // TabpageSetWindow sets the current window in a tabpage.
593+ func TabpageSetWindow (tabpage Tabpage , win Window ) {
594+ name (nvim_tabpage_set_win )
595+ }
596+
592597// TabpageWindow gets the current window in a tabpage.
593598func TabpageWindow (tabpage Tabpage ) Window {
594599 name (nvim_tabpage_get_win )
@@ -951,33 +956,39 @@ func OptionInfo(name string, opts map[string]any) (opinfo OptionInfo) {
951956// SetOption sets an option value.
952957func SetOption (name string , value any ) {
953958 name (nvim_set_option )
959+ deprecatedSince (11 )
954960}
955961
956962// Option gets an option value string.
957963func Option (name string ) (option any ) {
958964 name (nvim_get_option )
965+ deprecatedSince (11 )
959966}
960967
961968// BufferOption gets a buffer option value.
962969func BufferOption (buffer Buffer , name string ) (value any ) {
963970 name (nvim_buf_get_option )
971+ deprecatedSince (11 )
964972}
965973
966974// SetBufferOption sets a buffer option value.
967975//
968976// Passing nil as value arg to deletes the option (only works if there's a global fallback).
969977func SetBufferOption (buffer Buffer , name string , value any ) {
970978 name (nvim_buf_set_option )
979+ deprecatedSince (11 )
971980}
972981
973982// WindowOption gets a window option value.
974983func WindowOption (window Window , name string ) (value any ) {
975984 name (nvim_win_get_option )
985+ deprecatedSince (11 )
976986}
977987
978988// SetWindowOption sets a window option value. Passing "nil" as value deletes the option(only works if there's a global fallback).
979989func SetWindowOption (window Window , name string , value any ) {
980990 name (nvim_win_set_option )
991+ deprecatedSince (11 )
981992}
982993
983994// ui.c
@@ -1015,6 +1026,11 @@ func TryResizeUI(width, height int) {
10151026 name (nvim_ui_try_resize )
10161027}
10171028
1029+ // UITermEvent sends a terminal event to the UI.
1030+ func UITermEvent (event string , value any ) {
1031+ name (nvim_ui_term_event )
1032+ }
1033+
10181034// SetUIOption sets a UI option.
10191035func SetUIOption (name string , value any ) {
10201036 name (nvim_ui_set_option )
@@ -1136,6 +1152,12 @@ func HLByName(name string, rgb bool) (highlight HLAttrs) {
11361152 deprecatedSince (9 )
11371153}
11381154
1155+ // GetHighlightNamespace gets highlight namespace.
1156+ func GetHighlightNamespace (opts map [string ]any ) (ns int ) {
1157+ name (nvim_get_hl_ns )
1158+ }
1159+
1160+
11391161// SetHighlight sets a highlight group.
11401162//
11411163// nsID is number of namespace for this highlight.
@@ -1904,6 +1926,11 @@ func SetWindowWidth(window Window, width int) {
19041926 name (nvim_win_set_width )
19051927}
19061928
1929+ // WindowTextHeight calculates the height of window text.
1930+ func WindowTextHeight (window Window , opts map [string ]any ) (result map [string ]any ) {
1931+ name (nvim_win_text_height )
1932+ }
1933+
19071934// WindowVar gets a window-scoped (w:) variable.
19081935func WindowVar (window Window , name string ) (value any ) {
19091936 name (nvim_win_get_var )
0 commit comments