From 4a1227f683591f060dfa7804f3e8116feb2c6fcd Mon Sep 17 00:00:00 2001 From: Daniel Habib Vieira da Silva Date: Wed, 20 Sep 2023 19:07:22 -0300 Subject: [PATCH 1/2] fix typo at lua config file sample --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b3f58ab..b4a8456 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,8 @@ It currently only has first-class support for the `clojure` language and has a f ## Configuration ```lua -require("nvim-paredit").setup({ +paredit = require("nvim-paredit"); +paredit.setup({ -- should plugin use default keybindings? (default = true) use_default_keys = true, -- sometimes user wants to restrict plugin to certain file types only @@ -105,25 +106,25 @@ require("nvim-paredit").setup({ -- These are text object selection keybindings which can used with standard `d, y, c`, `v` ["af"] = { - api.select_around_form, + paredit.api.select_around_form, "Around form", repeatable = false, mode = { "o", "v" } }, ["if"] = { - api.select_in_form, + paredit.api.select_in_form, "In form", repeatable = false, mode = { "o", "v" } }, ["ae"] = { - api.select_element, + paredit.api.select_element, "Around element", repeatable = false, mode = { "o", "v" }, }, ["ie"] = { - api.select_element, + paredit.api.select_element, "Element", repeatable = false, mode = { "o", "v" }, From c49b590a6db0ceb940f39023e1e5879cc222651d Mon Sep 17 00:00:00 2001 From: Julien Vincent Date: Wed, 20 Sep 2023 23:59:58 +0100 Subject: [PATCH 2/2] Fix README config syntax Co-authored-by: Daniel Habib Vieira da Silva --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b4a8456..a47d5fa 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ It currently only has first-class support for the `clojure` language and has a f ## Configuration ```lua -paredit = require("nvim-paredit"); +local paredit = require("nvim-paredit") paredit.setup({ -- should plugin use default keybindings? (default = true) use_default_keys = true,