From 7f61423bb295ff1814da457e65157bad96718e5b Mon Sep 17 00:00:00 2001 From: aarondill Date: Mon, 25 Mar 2024 01:41:25 -0500 Subject: [PATCH] doc: add example of using advanced keymapping to readme --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 305b86b..5fd866b 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,23 @@ lua <", function() + if require("tabnine.keymaps").has_suggestion() then + return require("tabnine.keymaps").accept_suggestion() + elseif require("luasnip").jumpable(1) then + return require("luasnip").jump(1) + else + return "" + end +end, { expr = true }) +``` + ## Activate Tabnine Pro - `:TabnineHub` - to open Tabnine Hub and log in to your account