Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim: git integration #6

Open
tednaaa opened this issue Jul 9, 2024 · 3 comments
Open

nvim: git integration #6

tednaaa opened this issue Jul 9, 2024 · 3 comments

Comments

@tednaaa
Copy link
Owner

tednaaa commented Jul 9, 2024

No description provided.

@tednaaa
Copy link
Owner Author

tednaaa commented Jul 14, 2024

Currently using

Other options

Fugitive

Lazygit configured with tmux

#!/bin/sh

full_path="$PWD/$1"
if [ -z "$TMUX" ]; then
  nvim "$full_path"
else
  window_name="neovim"

  nvim_pid=$(tmux list-panes -t $window_name -F "#{pane_pid}" | xargs pgrep --parent | xargs pgrep --parent)

  socket="/run/user/1000/nvim.$nvim_pid.0"

  nvim --server "$socket" --remote-tab "$full_path"

  tmux select-window -t "$window_name"
fi

Or with nvim plugin

@tednaaa tednaaa changed the title nvim: complete configuration for git nvim: git integration Jul 14, 2024
@tednaaa
Copy link
Owner Author

tednaaa commented Jul 19, 2024

found amazing tool

but seems nobody support it, only fzf lua with stage/unstage

image

@tednaaa
Copy link
Owner Author

tednaaa commented Jul 19, 2024

seems I should create my own plugin for neovim with git integration that uses delta and treesitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant