Coder Social home page Coder Social logo

Comments (5)

mrbjarksen avatar mrbjarksen commented on May 29, 2024

The option follow_current_file decides if the neo-tree window should change its focused node when moving between files outside the window. It sounds like you're looking for the preview feature that was recently added to neo-tree. I created the branch native-open-and-preview to test it, but I think it's safe to merge it to main. I'll do that now.

from neo-tree-diagnostics.nvim.

nyngwang avatar nyngwang commented on May 29, 2024

@mrbjarksen Yes, I just tried the mapping ['<cr>'] = 'preview' and it works like my no_open above. Could you elaborate more on how to make this "preview" mode behavior enabled by default, so I don't have to use a mapping to enable it?

from neo-tree-diagnostics.nvim.

mrbjarksen avatar mrbjarksen commented on May 29, 2024

Currently, automatically starting preview mode can only be done by adding an event handler for neo_tree_buffer_enter. It should be simple to add a config option for this though, I'll work on that when I can tomorrow. There's a newly opened issue on neo-tree regarding this feature (nvim-neo-tree/neo-tree.nvim#545) so the option might change in the future.

By the way, I believe neo-tree has the toggle_preview command using a floating window mapped to P by default.

from neo-tree-diagnostics.nvim.

mrbjarksen avatar mrbjarksen commented on May 29, 2024

I just added options to enable automatic preview: 6e4180c.

from neo-tree-diagnostics.nvim.

nyngwang avatar nyngwang commented on May 29, 2024

@mrbjarksen The commit seems to cause an error. The error is shown on both diagnostics list and neotree filesystem filetree.

Error in event handler for event neo_tree_buffer_enter[diagnostics.neo_tree_buffer_enter]: ...im/site/pack/packer/start/nui.nvim/lua/nui/tree/init.lua:254: Expected Lua number

from neo-tree-diagnostics.nvim.

Related Issues (13)

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.