diff --git a/docs/Config.md b/docs/Config.md index 9c5aa20b8..e3890f9f6 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -285,9 +285,9 @@ os: editPreset: 'vscode' ``` -Supported presets are `vim`, `emacs`, `nano`, `vscode`, `sublime`, `bbedit`, and -`xcode`. In many cases lazygit will be able to guess the right preset from your -$(git config core.editor), or an environment variable such as $VISUAL or $EDITOR. +Supported presets are `vim`, `nvim`, `emacs`, `nano`, `vscode`, `sublime`, `bbedit`, +`kakoune` and `xcode`. In many cases lazygit will be able to guess the right preset +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 there simply is no preset for your editor, you can customize the commands by diff --git a/pkg/config/editor_presets.go b/pkg/config/editor_presets.go index d461112d0..76b9d5996 100644 --- a/pkg/config/editor_presets.go +++ b/pkg/config/editor_presets.go @@ -35,6 +35,7 @@ type editPreset struct { 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 { presets := map[string]*editPreset{ "vi": standardTerminalEditorPreset("vi"),