Coder Social home page Coder Social logo

Comments (3)

pysan3 avatar pysan3 commented on June 8, 2024

Nui.nvim is a necessary dependency for neo-tree.

Please follow the install instructions here: https://github.com/nvim-neo-tree/neo-tree.nvim?tab=readme-ov-file#minimal-example-for-lazy

from neo-tree.nvim.

dkumza avatar dkumza commented on June 8, 2024

2024-04-23_09-01
2024-04-23_09-02

this is my neo-tree.lua
return { "nvim-neo-tree/neo-tree.nvim", branch = "v3.x", dependencies = { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons", "MunifTanjim/nui.nvim", }, config = function() local builtin = require('neo-tree') vim.keymap.set("n", "<C-n>", ":Neotree source=filesystem reveal=true position=left <CR>", {}) end }

Now I removed everything from that file and added again config.
This error disapeared, but still cant use properly tree
On 1st nvim startup i can't use C-n, it wont open tree. But if i write with hand :Neo... its working till i completly shut down my CLI tool.

from neo-tree.nvim.

pysan3 avatar pysan3 commented on June 8, 2024

This is because lazy.nvim is lazy loading neo-tree and config is only called after you load neo-tree and therefore keymap.set is also triggered only after neo-tree is loaded.

Please refer to the lazy.nvim README for more information but you should define key maps with the keys field in the plugin spec.

https://github.com/folke/lazy.nvim

from neo-tree.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.