Replies: 1 comment
-
|
Sorry for the late response. there's no method for this yet. but it should be simple to add some event hook that lets you modify the arguments used for the git status commands. maybe something like: local events = require("neo-tree.events")
events.subscribe({
event = events.BEFORE_GIT_STATUS,
handler = function(args)
if args.git_root = vim.env.HOME then
local status_args = args.status_args
status_args[#status_args + 1] = "--ignored=no"
end
end
})
-- or you could add that { event = ..., handler = ... } to the `event_handlers` array within neotree.setup()Although to suggest an alternative, I use a bare git repo + a shell alias for dotfiles version control (as described in https://www.atlassian.com/git/tutorials/dotfiles) so my home directory isn't a git repo unless I'm using the shell alias or setting the environment variables GIT_DIR/GIT_WORK_TREE. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To version control my dotfiles I ended up using the solution of having my entire
$HOMEconfigured as a git repository but by default have all files ignored via~/.gitignore. This has the unfortunate side effect that NeoTree views every directory within$HOMEas hidden, which is a bit inconvenient because I always have to unhide all the files and then wade through all the hidden files until I get to the "important stuff".Is there a possibility to configure NeoTree to ignore this specific .gitignore file? Or do I have to turn off .gitignore support globally?
Beta Was this translation helpful? Give feedback.
All reactions