Skip to content

Commit

Permalink
docs: buffer-local keymaps based on ft
Browse files Browse the repository at this point in the history
  • Loading branch information
S1M0N38 committed May 26, 2024
1 parent 2e3f184 commit 9e39278
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ However, I believe that providing this simple codebase to explore can be a good
cmd = "LoveRun",
opts = { },
keys = {
{ "<leader>v", desc = "LÖVE" },
{ "<leader>vv", "<cmd>LoveRun<cr>", desc = "Run LÖVE" },
{ "<leader>vs", "<cmd>LoveStop<cr>", desc = "Stop LÖVE" },
{ "<leader>v", ft = "lua", desc = "LÖVE" },
{ "<leader>vv", "<cmd>LoveRun<cr>", ft = "lua", desc = "Run LÖVE" },
{ "<leader>vs", "<cmd>LoveStop<cr>", ft = "lua", desc = "Stop LÖVE" },
},
}
```
Expand All @@ -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
Expand Down

0 comments on commit 9e39278

Please sign in to comment.