tednaaa / dotfiles

🧙‍♂️ I'll create dotfiles here
8 stars 0 forks source link

nvim: git integration #6

Open tednaaa opened 3 months ago

tednaaa commented 3 months ago

Currently using

Other options

Fugitive

Lazygit configured with tmux

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
- https://github.com/kdheepak/lazygit.nvim
tednaaa commented 3 months ago

found amazing tool

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

image

tednaaa commented 3 months ago

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