From 9e3927836391a6147247411802917e2da6844042 Mon Sep 17 00:00:00 2001 From: S1M0N38 Date: Sun, 26 May 2024 14:35:22 +0200 Subject: [PATCH] docs: buffer-local keymaps based on ft --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 52a5735..b2b33be 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ However, I believe that providing this simple codebase to explore can be a good cmd = "LoveRun", opts = { }, keys = { - { "v", desc = "LÖVE" }, - { "vv", "LoveRun", desc = "Run LÖVE" }, - { "vs", "LoveStop", desc = "Stop LÖVE" }, + { "v", ft = "lua", desc = "LÖVE" }, + { "vv", "LoveRun", ft = "lua", desc = "Run LÖVE" }, + { "vs", "LoveStop", ft = "lua", desc = "Stop LÖVE" }, }, } ``` @@ -50,7 +50,6 @@ Read the documentation with [`:help love2d`](https://github.com/S1M0N38/love2d.n > Vim/Neovim plugins are usually shipped with :help documentation. Learning how to navigate it is a really valuable skill. If you are not familiar with it, start with `:help` and read the first 20 lines. - ## 🙏 Acknowledgments - [Reddit post](https://www.reddit.com/r/neovim/comments/1727alu/anyone_actively_using_love2d_with_neovim_and) for the idea