mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Add working configuration for git worktrees
parent
bc99e29740
commit
bb4730c9a0
1 changed files with 21 additions and 1 deletions
|
@ -2,4 +2,24 @@
|
|||
|
||||
This plugin lets you use lazygit in a floating window inside neovim.
|
||||
|
||||

|
||||

|
||||
|
||||
---
|
||||
|
||||
If you use git worktrees, the plugin [may not work for you](https://github.com/kdheepak/lazygit.nvim/issues/46). You can use floaterm to open lazygit yourself (giving you most, if not all, of what the plugin gives you) with this config:
|
||||
|
||||
```vim
|
||||
let g:floaterm_borderchars = "─│─│╭╮╯╰"
|
||||
let s:width = "1.0"
|
||||
let s:height = "1.0"
|
||||
let s:autoclose = "1"
|
||||
let s:command = 'lazygit'
|
||||
|
||||
function! s:open_lazygit_popup()
|
||||
execute "FloatermNew --height=" . s:height . " --width=" . s:width . " --autoclose=" . s:autoclose . " " . s:command
|
||||
endfunction
|
||||
|
||||
nnoremap <silent> <leader>lg :call <SID>open_lazygit_popup()<CR>
|
||||
```
|
||||
|
||||
You may want to change the height and width to a lower percentage of your window size.
|
Loading…
Add table
Add a link
Reference in a new issue