From 75979599b5ce1d287101dba4e5eef072cf5ec9ff Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 23 Sep 2024 10:45:52 +0700 Subject: [PATCH] Basic nvim config --- src/executor/runnercode.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/executor/runnercode.js b/src/executor/runnercode.js index c5eb132..ba4345d 100644 --- a/src/executor/runnercode.js +++ b/src/executor/runnercode.js @@ -231,6 +231,16 @@ export async function runConfigCodeFeatures(key, value, writeLog, domaindata, ss await sshExec("java --version"); } break; + case 'neovim': + case 'nvim': + if (value == 'off') { + await writeLog("$> Removing Neovim config"); + await sshExec(`rm -rf ~/.config/nvim ~/.local/state/nvim ~/.local/share/nvim`); + } else { + await writeLog("$> Installing Neovim Nvchad config"); + await sshExec(`git clone https://github.com/NvChad/starter ~/.config/nvim`); + } + break; default: break; }