diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-10-03 21:20:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 21:20:21 +0200 |
commit | 519760077bc5b177bca98ed88398362e516a634f (patch) | |
tree | 58374655daeec8a36ed41084c7f8fb134b645e78 | |
parent | a04fbafcfd79ef6fb7eecf32a40fa3a1ce23c050 (diff) | |
parent | 8390622f700afa015ca6443e5d4d7806cdb1a666 (diff) |
Add Micro editor preset (#3049)
-rw-r--r-- | docs/Config.md | 2 | ||||
-rw-r--r-- | pkg/config/editor_presets.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/Config.md b/docs/Config.md index fde550baf..5bdcaed98 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -319,7 +319,7 @@ os: editPreset: 'vscode' ``` -Supported presets are `vim`, `nvim`, `nvim-remote`, `emacs`, `nano`, `vscode`, `sublime`, `bbedit`, `kakoune`, `helix`, 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`, `nvim-remote`, `emacs`, `nano`, `micro`, `vscode`, `sublime`, `bbedit`, `kakoune`, `helix`, 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. `nvim-remote` is an experimental preset for when you have invoked lazygit from within a neovim process, allowing lazygit to open the file from within the parent process rather than spawning a new one. diff --git a/pkg/config/editor_presets.go b/pkg/config/editor_presets.go index 17850c7a5..8509cb54b 100644 --- a/pkg/config/editor_presets.go +++ b/pkg/config/editor_presets.go @@ -60,6 +60,7 @@ func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset suspend: false, }, "emacs": standardTerminalEditorPreset("emacs"), + "micro": standardTerminalEditorPreset("micro"), "nano": standardTerminalEditorPreset("nano"), "kakoune": standardTerminalEditorPreset("kak"), "helix": { |