Comments (2)
The problem here is that there can be many neo-tree windows so a singular "refresh" would not know which one to work on. If you are OK with assuming you only have one and that one is a filesystem
source, then you can do it with this command:
require("neo-tree.sources.filesystem.commands").refresh(require("neo-tree.sources.manager").get_state("filesystem"))
or as multiple lines:
local state = require("neo-tree.sources.manager").get_state("filesystem")
require("neo-tree.sources.filesystem.commands").refresh(state)
This calls the same command that would be called if you hit R
in the neo-tree window.
Then again, you should not have to manually refresh. Diagnostics works off of an autocmd and git status would work off of file watchers if you have set the filesystem.use_libuv_file_watcher
config option to true
.
from neo-tree.nvim.
thank you for teaching !
from neo-tree.nvim.
Related Issues (20)
- BUG: Explorer (Root Dir) doesn't toggle until I've toggled Explorer (cwd) before HOT 1
- Feature Request: Option to disable "Neo-tree Popup" text in prompt HOT 1
- BUG: Buffer with this name already exists when changing other source selection - close and reopen neotree HOT 1
- FEATURE: Default search to visible items
- FEATURE: the cursor automatically focuses on the newly created file
- BUG: LazyVim delete folder
- BUG: can execute neo-tree commands HOT 3
- BUG: close_all() function in event handler does not work when opening in new tab HOT 1
- FEATURE: adding hotkey to switch between open buffers HOT 1
- FEATURE: Relative line number HOT 2
- BUG: Can not open file insde App router with parentheses in its name. (Windows only) HOT 15
- BUG: Yank a file and paste bug
- FEATURE: Allow overriding default window selection logic when opening files HOT 1
- FEATURE: [BUG?] Remove expander when empty folder is detected
- BUG: fuzzy find does not take always_show into account HOT 4
- BUG: Filter doesn't work
- BUG: Custom commands breaks `?` HOT 2
- BUG: can't navigate up when folder removed from under neo-tree
- BUG: Disable foldcolumn of statuscol HOT 2
- Neo-tree can't correctly get diagnostic sings for Neovim 0.10.0-dev-3097+g064f3e42e-dirty HOT 3
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.nvim.