Skip to content

Commit

Permalink
neovim: Lazygit from tmux not working
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed Dec 23, 2024
1 parent b306406 commit 2323312
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dotfiles/nvim/.config/nvim/conf/auto/flatten.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ require("flatten").setup({
},
callbacks = {
pre_open = function()
-- close lazygit before opening files
LazygitClose()
end,
},
pipe_path = require("flatten").default_pipe_path,
pipe_path = function()
-- running inside a neovim terminal
if vim.env.NVIM then
return vim.env.NVIM
end

-- running inside tmux
--local result = vim.system({'dev', 'tmux', 'nvim-socket'}, {text = true }):wait()
--return result.stdout
end,
})

0 comments on commit 2323312

Please sign in to comment.