Skip to content

I still need to press R to refresh the neotree after commit the changes #1253

Answered by miversen33
LintaoAmons asked this question in Q&A
Discussion options

You must be logged in to vote

To expand on this a bit

-- 
-- Get the commands module from neo-tree.sources.filesystem. Found here: https://github.com/nvim-neo-tree/neo-tree.nvim/blob/main/lua/neo-tree/sources/filesystem/commands.lua
require("neo-tree.sources.filesystem.commands")
-- Call the refresh function found here: https://github.com/nvim-neo-tree/neo-tree.nvim/blob/2f2d08894bbc679d4d181604c16bb7079f646384/lua/neo-tree/sources/filesystem/commands.lua#L11-L13
.refresh(
    -- Pull in the manager module. Found here: https://github.com/nvim-neo-tree/neo-tree.nvim/blob/2f2d08894bbc679d4d181604c16bb7079f646384/lua/neo-tree/sources/manager.lua
    require("neo-tree.sources.manager")
        -- Fetch the state of the "f…

Replies: 5 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@LintaoAmons
Comment options

Comment options

You must be logged in to vote
2 replies
@jasper-clarke
Comment options

@jasper-clarke
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@miversen33
Comment options

Answer selected by LintaoAmons
@LintaoAmons
Comment options

@stormyal
Comment options

@cseickel
Comment options

Comment options

You must be logged in to vote
6 replies
@SimonBrandner
Comment options

@jasper-clarke
Comment options

@SimonBrandner
Comment options

@cseickel
Comment options

@SimonBrandner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants