install neotree
This commit is contained in:
parent
23c3ee80b7
commit
12589539b4
28
init.lua
28
init.lua
|
|
@ -250,21 +250,33 @@ rtp:prepend(lazypath)
|
||||||
-- NOTE: Here is where you install your plugins.
|
-- NOTE: Here is where you install your plugins.
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||||
|
'NMAC427/guess-indent.nvim',
|
||||||
|
|
||||||
-- Detect tabstop and shiftwidth automatically
|
|
||||||
{
|
|
||||||
'NMAC427/guess-indent.nvim',
|
|
||||||
config = function()
|
|
||||||
require('guess-indent').setup {}
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
-- NOTE: Plugins can also be added by using a table,
|
-- NOTE: Plugins can also be added by using a table,
|
||||||
-- with the first argument being the link and the following
|
-- with the first argument being the link and the following
|
||||||
-- keys can be used to configure plugin behavior/loading/etc.
|
-- keys can be used to configure plugin behavior/loading/etc.
|
||||||
--
|
--
|
||||||
-- Use `opts = {}` to automatically pass options to a plugin's `setup()` function, forcing the plugin to be loaded.
|
-- Use `opts = {}` to automatically pass options to a plugin's `setup()` function, forcing the plugin to be loaded.
|
||||||
--
|
--
|
||||||
|
-- NeoTree
|
||||||
|
{
|
||||||
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
|
branch = 'v3.x',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
'nvim-tree/nvim-web-devicons', -- optional, but recommended
|
||||||
|
},
|
||||||
|
lazy = false, -- neo-tree will lazily load itself
|
||||||
|
keys = {
|
||||||
|
{ '<C-n>', ':Neotree toggle<CR>', desc = 'Toggle Neo-tree' },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require('neo-tree').setup {
|
||||||
|
-- your Neo-tree settings here
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
-- Alternatively, use `config = function() ... end` for full control over the configuration.
|
-- Alternatively, use `config = function() ... end` for full control over the configuration.
|
||||||
-- If you prefer to call `setup` explicitly, use:
|
-- If you prefer to call `setup` explicitly, use:
|
||||||
-- {
|
-- {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue