diff options
| author | Damjan 9000 <damjan.9000@gmail.com> | 2024-04-17 21:25:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-17 15:25:54 -0400 |
| commit | 2cb55b419f9d47f052a998eda43718143d1095ce (patch) | |
| tree | 8154f9ddd7edb6fd87ce6a5907eb8f85acc950bd /nvim/README.md | |
| parent | bddd76c1f92c9155d064b48eeb7d9d3579ad6976 (diff) | |
| download | dots-2cb55b419f9d47f052a998eda43718143d1095ce.tar.gz | |
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
Diffstat (limited to 'nvim/README.md')
| -rw-r--r-- | nvim/README.md | 65 |
1 files changed, 2 insertions, 63 deletions
diff --git a/nvim/README.md b/nvim/README.md index e67b94a..a427def 100644 --- a/nvim/README.md +++ b/nvim/README.md @@ -99,71 +99,10 @@ That's it! Lazy will install all the plugins you have. Use `:Lazy` to view current plugin status. Hit `q` to close the window. Read through the `init.lua` file in your configuration folder for more -information about extending and exploring Neovim. +information about extending and exploring Neovim. That includes also +examples of adding popularly requested plugins. -#### Examples of adding popularly requested plugins - -NOTE: You'll need to uncomment the line in the init.lua that turns on loading custom plugins. - -<details> - <summary>Adding autopairs</summary> - -This will automatically install [windwp/nvim-autopairs](https://github.com/windwp/nvim-autopairs) -and enable it on startup. For more information, see documentation for -[lazy.nvim](https://github.com/folke/lazy.nvim). - -In the file: `lua/custom/plugins/autopairs.lua`, add: - -```lua --- File: lua/custom/plugins/autopairs.lua - -return { - "windwp/nvim-autopairs", - -- Optional dependency - dependencies = { 'hrsh7th/nvim-cmp' }, - config = function() - require("nvim-autopairs").setup {} - -- If you want to automatically add `(` after selecting a function or method - local cmp_autopairs = require('nvim-autopairs.completion.cmp') - local cmp = require('cmp') - cmp.event:on( - 'confirm_done', - cmp_autopairs.on_confirm_done() - ) - end, -} -``` - -</details> -<details> - <summary>Adding a file tree plugin</summary> - -This will install the tree plugin and add the command `:Neotree` for you. -For more information, see the documentation at -[neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim). - -In the file: `lua/custom/plugins/filetree.lua`, add: - -```lua --- File: lua/custom/plugins/filetree.lua - -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", - }, - config = function () - require('neo-tree').setup {} - end, -} -``` - -</details> - ### Getting Started [The Only Video You Need to Get Started with Neovim](https://youtu.be/m8C0Cq9Uv9o) |