From cf7f3d4c1b044e8c1cad4794e17f03be447baa6a Mon Sep 17 00:00:00 2001 From: Axel Dahlberg Date: Sun, 30 Oct 2022 17:03:32 +0100 Subject: [PATCH] feat: add a notification when connected to kernel --- rplugin/python3/nvim_ipy/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rplugin/python3/nvim_ipy/__init__.py b/rplugin/python3/nvim_ipy/__init__.py index 5859d66..90fab1c 100644 --- a/rplugin/python3/nvim_ipy/__init__.py +++ b/rplugin/python3/nvim_ipy/__init__.py @@ -270,6 +270,8 @@ def connect(self, argv): for i in range(len(banner)): self.buf.add_highlight('Comment', pos+i) + vim.exec_lua('vim.notify("Connected to kernel")') + if self.do_filetype: # TODO: we might want to wrap this in a sync call # to avoid racyness with user interaction