Skip to content

Commit 9291040

Browse files
authored
docs: Update help docs + README. (#442)
1 parent 19e3947 commit 9291040

2 files changed

Lines changed: 161 additions & 100 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ Surround selections, stylishly :sunglasses:
3636
Install this plugin using your favorite plugin manager, and that's it! See
3737
`:h nvim-surround.configuration` for how to configure the plugin.
3838

39+
### [vim.pack](https://neovim.io/doc/user/pack/#_plugin-manager)
40+
41+
```lua
42+
-- NOTE: This requires Neovim version 0.12 and greater!
43+
vim.pack.add({ {
44+
src = "https://github.com/kylechui/nvim-surround",
45+
version = vim.version.range("4.x"), -- Use for stability; omit to use `main` branch for the latest features
46+
} })
47+
-- Optional: See `:h nvim-surround.configuration` and `:h nvim-surround.setup` for details
48+
-- require("nvim-surround").setup({
49+
-- -- Put your configuration here
50+
-- })
51+
```
52+
3953
### [lazy.nvim](https://github.com/folke/lazy.nvim)
4054

4155
```lua

0 commit comments

Comments
 (0)