forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move plugin examples from README to optional plugin files (nvim-lua#831)
* Move autopairs example from README to an optional plugin * Move neo-tree example from README to an optional plugin
- Loading branch information
Showing
4 changed files
with
45 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- autopairs | ||
-- https://github.com/windwp/nvim-autopairs | ||
|
||
return { | ||
'windwp/nvim-autopairs', | ||
event = 'InsertEnter', | ||
-- 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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |