aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-09-02 19:49:30 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2020-09-05 13:33:21 +0200
commita1508c9f6d81177918c366bd9fa0aa5dd12e60a2 (patch)
treed6b68b5b5797c0ca20867a8bb0bac2abe35ded0b /src/nvim/api
parent7b1b271f43e9ceca3b195e7e3d56147d38919c2b (diff)
downloadrneovim-a1508c9f6d81177918c366bd9fa0aa5dd12e60a2.tar.gz
rneovim-a1508c9f6d81177918c366bd9fa0aa5dd12e60a2.tar.bz2
rneovim-a1508c9f6d81177918c366bd9fa0aa5dd12e60a2.zip
nvim__screenshot
Diffstat (limited to 'src/nvim/api')
-rw-r--r--src/nvim/api/ui_events.in.h2
-rw-r--r--src/nvim/api/vim.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/api/ui_events.in.h b/src/nvim/api/ui_events.in.h
index ab31db39e9..ef5e90bf5c 100644
--- a/src/nvim/api/ui_events.in.h
+++ b/src/nvim/api/ui_events.in.h
@@ -36,6 +36,8 @@ void set_title(String title)
FUNC_API_SINCE(3);
void set_icon(String icon)
FUNC_API_SINCE(3);
+void screenshot(String path)
+ FUNC_API_SINCE(7) FUNC_API_REMOTE_IMPL;
void option_set(String name, Object value)
FUNC_API_SINCE(4) FUNC_API_BRIDGE_IMPL;
// Stop event is not exported as such, represented by EOF in the msgpack stream.
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index fbd6511161..632f55f49a 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -2627,3 +2627,9 @@ void nvim__put_attr(Integer id, Integer start_row, Integer start_col,
decorations_add_luahl_attr(attr, (int)start_row, (colnr_T)start_col,
(int)end_row, (colnr_T)end_col);
}
+
+void nvim__screenshot(String path)
+ FUNC_API_FAST
+{
+ ui_call_screenshot(path);
+}