jesseduffield / jesseduffield/lazygit

custom cursor shape

Open
#4,541 4 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

I want to use `beam` shape in prompt. It automatically works if I run lazygit inside kitty (maybe also need to set default cursor shape in kitty config). But not in neovim's embeded terminal. This is a quick patch for me.

```diff
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 358c284f5..1e70c3a05 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -766,6 +766,7 @@ func (gui *Gui) initGocui(headless bool, test integrationTypes.IntegrationTest)
Width: width,
Height: height,
})
+ gocui.Screen.SetCursorStyle(6)
if err != nil {
return nil, err
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.