From 7ffb6ffb0f27aca52d9da5e4c655f10e6a1af567 Mon Sep 17 00:00:00 2001 From: zottelsheep Date: Sat, 14 Oct 2023 15:00:58 +0200 Subject: [PATCH] Add 'lvim' editor preset for lunarvim Add 'lvim' as a new standardTerminalEditorPreset, since lunarvim uses an alias for nvim. --- docs/Config.md | 2 +- pkg/config/editor_presets.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Config.md b/docs/Config.md index b37745b44..3bcf13781 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`, `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. +Supported presets are `vim`, `nvim`, `nvim-remote`, `lvim`, `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 8509cb54b..284b21306 100644 --- a/pkg/config/editor_presets.go +++ b/pkg/config/editor_presets.go @@ -59,6 +59,7 @@ func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset openDirInEditorTemplate: `nvim --server "$NVIM" --remote-tab {{dir}}`, suspend: false, }, + "lvim": standardTerminalEditorPreset("lvim"), "emacs": standardTerminalEditorPreset("emacs"), "micro": standardTerminalEditorPreset("micro"), "nano": standardTerminalEditorPreset("nano"),