aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-06-23 09:56:35 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2018-11-24 11:01:37 +0100
commit01dbf0951b25d582451a8e656731dcf3d9295a71 (patch)
tree40d9b5b3fee2829baf8c3ab5fa38cf8d0629d7ce /src/nvim/api/vim.h
parent108566e7b6f1b331dac8e339280c230bf39c137d (diff)
downloadrneovim-01dbf0951b25d582451a8e656731dcf3d9295a71.tar.gz
rneovim-01dbf0951b25d582451a8e656731dcf3d9295a71.tar.bz2
rneovim-01dbf0951b25d582451a8e656731dcf3d9295a71.zip
api: implement object namespaces
Namespaces is a lightweight concept that should be used to group objects for purposes of bulk operations and introspection. This is initially used for highlights and virtual text in buffers, and is planned to also be used for extended marks. There is no plan use them for privileges or isolation, neither to introduce nanespace-level options.
Diffstat (limited to 'src/nvim/api/vim.h')
-rw-r--r--src/nvim/api/vim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/api/vim.h b/src/nvim/api/vim.h
index 5e0b35b562..d6873da6d2 100644
--- a/src/nvim/api/vim.h
+++ b/src/nvim/api/vim.h
@@ -4,6 +4,10 @@
#include <stdint.h>
#include "nvim/api/private/defs.h"
+#include "nvim/map.h"
+
+EXTERN Map(String, handle_T) *namespace_ids INIT(= NULL);
+EXTERN handle_T next_namespace_id INIT(= 1);
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "api/vim.h.generated.h"