Comments (5)
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.
@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.
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.
I just added options to enable automatic preview: 6e4180c.
from neo-tree-diagnostics.nvim.
@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)
- Status of "preview" code? HOT 1
- Improve rendering multi-line diagnostic messages HOT 2
- Enable overriding diagnostic symbols and highlights HOT 1
- Is it possible to jump to that line on `<CR>`? HOT 2
- The highlight of keyword from `'preview'` cannot be cleared with `:noh` HOT 3
- Error in event handler for event neo_tree_buffer_enter[diagnostics.neo_tree_buffer_enter]: .../lua/nui/tree/init.lua:254: Expected Lua number HOT 8
- `reveal` does not respect `follow_behavior` HOT 4
- Support for TODO comments HOT 1
- Error arised when move focus from neo-tree-diagnostics window to a normal window HOT 4
- Control auto-refresh with config option HOT 6
- Alternate renderer for diagnostics.. WIki? HOT 3
- Warning Invalid mapping for HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo-tree-diagnostics.nvim.