mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
API: Implement vim_get_vvar
This commit is contained in:
parent
5d0cb370f6
commit
f69b0a1dc7
@ -152,6 +152,11 @@ Object vim_set_var(String name, Object value, Error *err)
|
|||||||
return dict_set_value(&globvardict, name, value, err);
|
return dict_set_value(&globvardict, name, value, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Object vim_get_vvar(String name, Error *err)
|
||||||
|
{
|
||||||
|
return dict_get_value(&vimvardict, name, err);
|
||||||
|
}
|
||||||
|
|
||||||
Object vim_get_option(String name, Error *err)
|
Object vim_get_option(String name, Error *err)
|
||||||
{
|
{
|
||||||
return get_option_from(NULL, SREQ_GLOBAL, name, err);
|
return get_option_from(NULL, SREQ_GLOBAL, name, err);
|
||||||
|
@ -76,6 +76,13 @@ Object vim_get_var(String name, Error *err);
|
|||||||
/// @return the old value if any
|
/// @return the old value if any
|
||||||
Object vim_set_var(String name, Object value, Error *err);
|
Object vim_set_var(String name, Object value, Error *err);
|
||||||
|
|
||||||
|
/// Gets a vim variable
|
||||||
|
///
|
||||||
|
/// @param name The variable name
|
||||||
|
/// @param[out] err Details of an error that may have occurred
|
||||||
|
/// @return The variable value
|
||||||
|
Object vim_get_vvar(String name, Error *err);
|
||||||
|
|
||||||
/// Get an option value string
|
/// Get an option value string
|
||||||
///
|
///
|
||||||
/// @param name The option name
|
/// @param name The option name
|
||||||
|
Loading…
Reference in New Issue
Block a user