From 0947f458c66cff3e26776a9a255584b8cf6186c6 Mon Sep 17 00:00:00 2001 From: MarcHamamji Date: Fri, 24 Feb 2023 23:14:58 +0200 Subject: [PATCH] Add Example --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7591548..17ecac9 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ A Neovim plugin to run code inside the editor | `filetype` | The filetype on which to run the given handler | `string` | | `handler` | The handler to run when the current file matches the filetype | `function(code_buffer_number)` | + Example: + ```lua require('runner').set_handler('lua', function(code_buffer_number) vim.print('Running lua file in buffer ' .. code_buffer_number)