fix(docs): Small fixes in README.md

This commit is contained in:
Myzel394 2024-04-12 22:29:23 +02:00
parent 9934f646c1
commit 06c8a420e8
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185

View File

@ -21,28 +21,28 @@ Install with your favorite plugin manager, for example with [lazy.nvim](https://
-- Other dependencies -- Other dependencies
-- .. -- ..
"Myzel394/jsonfly.nvim", "Myzel394/jsonfly.nvim",
}, }
}, }
``` ```
Here's how I load it with lazy.nvim with lazy-loading :) Here's how I load it with lazy.nvim with lazy-loading and `<leader>j` as the keymap :)
```lua ```lua
{ {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
dependencies = { dependencies = {
"Myzel394/jsonfly.nvim", "Myzel394/jsonfly.nvim",
},
keys = {
{
"<leader>j",
"<cmd>Telescope jsonfly<cr>",
desc = "Open json(fly)",
ft = { "json" },
mode = "n"
},
}
}, },
keys = {
{
"<leader>j",
"<cmd>Telescope jsonfly<cr>",
desc = "Open json(fly)",
ft = { "json" },
mode = "n"
}
}
}
``` ```
Load the extension with: Load the extension with:
@ -106,5 +106,5 @@ require"telescope".setup {
## Acknowledgements ## Acknowledgements
- JSON parsing is done with [Jeffrey Friedl's JSON library](http://regex.info/blog/lua/json - JSON parsing is done with [Jeffrey Friedl's JSON library](http://regex.info/blog/lua/json)