config/qtile: properly spawn editor in terminal

This commit is contained in:
Infinidoge 2024-11-11 21:43:42 -05:00
parent 9149206848
commit 618ca50564
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -55,7 +55,7 @@ class Apps:
TERMINAL = guess_terminal(preference="kitty") # Set preference if necessary
SHELL = "zsh"
EDITOR = os.getenv("EDITOR", "vim")
EDITOR = "nvim"
@classmethod
def terminal_command(cls, program, args=tuple(), *, terminal=None):
@ -436,7 +436,7 @@ keys = [
),
Key(
[Keys.SUPER, Keys.ALT], "e",
lazy.spawn(Apps.EDITOR),
Apps.open_in_terminal(Apps.EDITOR),
desc="Launch editor",
),
Key(