Skip to content
Discussion options

You must be logged in to vote

in lazy.nvim, specifying both config and opts means that you need to pass the opts argument into neo-tree within config, instead of having lazy.nvim automatically do it for you. change your config function to this:

    config = function(_, opts)
        nmap('<leader>\\', ':Neotree<CR>')
        nmap('<leader>nt', ':Neotree<CR>')
        nmap('<leader>cfg',
             ':tabnew<CR>:Neotree dir=' .. vim.fn.stdpath('config') .. '<CR>')
        augroup('neo-tree', true, {{'VimEnter', '*', 'Neotree action=show'}})
        -- add setup call
        require("neo-tree").setup(opts)
        -- (alternatively, just move opts into the setup call directly)
        -- require("neo-tree").setup({ ... })

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bumbledbees
Comment options

Answer selected by bumbledbees
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants