You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the bottom window in this screenshot you can see that /scripts/init.sh isn't tracked by git:
I would like to execute git add scripts/init.sh via Neo-tree window.
When I press ? in Neo-tree window, I see that:
I see nothing to perform a git add... command.
From this documentation, I tried to add this lines in my Neo-tree setup config:
window = {
mappings = {
["<space>"] = {
"toggle_node",
nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
}--,
["A"] = "git_add_all",
["gu"] = "git_unstage_file",
["ga"] = "git_add_file",
["gr"] = "git_revert_file",
["gc"] = "git_commit",
["gp"] = "git_push",
["gg"] = "git_commit_and_push"
}
},
Click to see complete Neo-tree config
use {
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
config = function ()
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
require("neo-tree").setup({
close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
open_files_in_last_window = false,
popup_border_style = "rounded",
enable_git_status = true,
enable_diagnostics = true,
window = {
mappings = {
["<space>"] = {
"toggle_node",
nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
}--,
["A"] = "git_add_all",
["gu"] = "git_unstage_file",
["ga"] = "git_add_file",
["gr"] = "git_revert_file",
["gc"] = "git_commit",
["gp"] = "git_push",
["gg"] = "git_commit_and_push"
}
},
filesystem = {
hijack_netrw_behavior = "open_current"
}
})
end
}
But that doesn't work. I have an error when I press ? in Neo-tree window.
Question: how do you execute "git add ..." from Neo-tree filesystem window view?
In the bottom window in this screenshot you can see that
/scripts/init.sh
isn't tracked by git:I would like to execute
git add scripts/init.sh
via Neo-tree window.When I press
?
in Neo-tree window, I see that:I see nothing to perform a
git add...
command.From this documentation, I tried to add this lines in my Neo-tree setup config:
Click to see complete Neo-tree config
But that doesn't work. I have an error when I press
?
in Neo-tree window.Question: how do you execute "git add ..." from Neo-tree filesystem window view?
Best regards,
Stéphane
Originally posted by @stephane-klein in #528
The text was updated successfully, but these errors were encountered: