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: 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
- BUG: global table_is_empty
- BUG: reveal does not work for targets under hidden folders
- FEATURE: Keybind to unzip ZIP, RAR, TAR, GZ, 7Z HOT 1
- BUG: If deleting a file that you are working on and proceed to delete additional ones, you can delete your entire working directory.
- FEATURE: support for branches in git status
- BUG: dependencies typo in lazy.nvim config in readme
- BUG: foldlevel breaks help display HOT 1
- BUG: Black/White background color on interactive windows since neovim v0.10 HOT 6
- BUG: vim.diagnostics.is_disabled() is deprecated HOT 1
- BUG: v3.x not updated to latest release HOT 4
- FEATURE: [HELP] How to toggle `follow_current_file`? HOT 2
- FEATURE: DevIcons of an item retain their colors even if the item is ignored or filtered
- FEATURE: Favorite list folder HOT 1
- BUG: Unable to auto close neo-tree when file is opened through fuzzy finder
- FEATURE: Prevent hidden files from being dimmed (darker color)
- BUG: File Nesting sometimes not working.
- BUG: not following `pwd` after restoring session with Resession
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.