From 5d5ef608326a8574584da5b72c3de42e26dc01d4 Mon Sep 17 00:00:00 2001 From: Matteo Golin Date: Thu, 19 Oct 2023 21:58:46 -0400 Subject: [PATCH 1/2] Updated readme to show that setup is required for plugin to work correctly. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 193e788..12f1d6f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,10 @@ for managing your timers. Using [packer.nvim](https://github.com/wbthomason/packer.nvim) ```lua -use { "linguini1/pulse.nvim" } +use { + "linguini1/pulse.nvim", + config = function() require("pulse").setup() end -- Call setup to get the basic config +} ``` Using [lazy.nvim](https://github.com/folke/lazy.nvim) @@ -26,9 +29,12 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim) { "linguini1/pulse.nvim", version = "*", -- Latest stable release + config = function() require("pulse").setup() end -- Call setup to get the basic config } ``` +You must call `pulse.setup()` in order to get access to the editor commands and default functionality. + ### Configuration The configuration for pulse.nvim is very simple. Below is the default configuration. See `:h pulse.setup()` for more From baffbcb14a2d24b821747aeb5c90cef88c09a09c Mon Sep 17 00:00:00 2001 From: Matteo Golin Date: Fri, 20 Oct 2023 15:38:44 -0400 Subject: [PATCH 2/2] Made it clearer that pulse.add should be called outside of pulse.setup(). --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 12f1d6f..9140442 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim) } ``` -You must call `pulse.setup()` in order to get access to the editor commands and default functionality. +You must call `setup()` in order to get access to the editor commands and default functionality. ### Configuration @@ -51,7 +51,8 @@ pulse.setup({ Once you have `setup` pulse.nvim, you can add timers using the below format. See `:h pulse.add()` for more information. ```lua ---- Parameters: name, interval, message, enabled +local pulse = require("pulse") +pulse.setup() pulse.add("break-timer", { interval = 60, message = "Take a break!",