Move plugin examples from README to optional plugin files (#831)

* Move autopairs example from README to an optional plugin

* Move neo-tree example from README to an optional plugin
This commit is contained in:
Damjan 9000 2024-04-17 21:25:54 +02:00 committed by GitHub
parent 5540527fab
commit 5e258d276f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 63 deletions

View file

@ -0,0 +1,25 @@
-- Neo-tree is a Neovim plugin to browse the file system
-- https://github.com/nvim-neo-tree/neo-tree.nvim
return {
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
},
cmd = 'Neotree',
keys = {
{ '\\', ':Neotree reveal<CR>', { desc = 'NeoTree reveal' } },
},
opts = {
filesystem = {
window = {
mappings = {
['\\'] = 'close_window',
},
},
},
},
}