1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-08 22:36:49 +02:00

Merge pull request #2591 from screendriver/nvim

This commit is contained in:
Jesse Duffield
2023-05-04 16:55:22 +10:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@ -285,9 +285,9 @@ os:
editPreset: 'vscode' editPreset: 'vscode'
``` ```
Supported presets are `vim`, `emacs`, `nano`, `vscode`, `sublime`, `bbedit`, and Supported presets are `vim`, `nvim`, `emacs`, `nano`, `vscode`, `sublime`, `bbedit`,
`xcode`. In many cases lazygit will be able to guess the right preset from your `kakoune` and `xcode`. In many cases lazygit will be able to guess the right preset
$(git config core.editor), or an environment variable such as $VISUAL or $EDITOR. from your $(git config core.editor), or an environment variable such as $VISUAL or $EDITOR.
If for some reason you are not happy with the default commands from a preset, or If for some reason you are not happy with the default commands from a preset, or
there simply is no preset for your editor, you can customize the commands by there simply is no preset for your editor, you can customize the commands by

View File

@ -35,6 +35,7 @@ type editPreset struct {
editInTerminal bool editInTerminal bool
} }
// IF YOU ADD A PRESET TO THIS FUNCTION YOU MUST UPDATE THE `Supported presets` SECTION OF docs/Config.md
func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset { func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset {
presets := map[string]*editPreset{ presets := map[string]*editPreset{
"vi": standardTerminalEditorPreset("vi"), "vi": standardTerminalEditorPreset("vi"),