From d64683eba45e8065ebc36bfea953e1c9f8bdfb57 Mon Sep 17 00:00:00 2001 From: utensil Date: Sat, 2 Nov 2024 21:20:12 +0800 Subject: [PATCH] Get NvChad up and running --- justfile | 17 +++++++++++++++++ uts-plugins.lua | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 3493ad4..8f3ba35 100644 --- a/justfile +++ b/justfile @@ -136,6 +136,10 @@ sync-lazyvim: stylua cp -f uts-plugins.lua ~/.config/nvim/lua/plugins/spec.lua cp -f lazyvim-cmp.lua ~/.config/nvim/lua/plugins/lazyvim-cmp.lua +sync-nvchad: stylua + mkdir -p ~/.config/nvim/lua/plugins + cp -f uts-plugins.lua ~/.config/nvim/lua/plugins/spec.lua + prep-nvim: prep-term #!/usr/bin/env bash which nvim || brew install neovim @@ -176,6 +180,19 @@ lazyvim PROJ="forest": sync-lazyvim #!/usr/bin/env bash cd ~/projects/{{PROJ}} && nvim --cmd 'set runtimepath+=~/.config/lazyvim/' -u ~/.config/lazyvim/lazyvim-init.lua . +prep-nvchad: + #!/usr/bin/env bash + if [ -d ~/.config/nvchad ]; then + (cd ~/.config/nvchad && git pull) + else + git clone https://github.com/NvChad/starter ~/.config/nvchad + fi + + +nvchad PROJ="forest": sync-nvchad + #!/usr/bin/env bash + cd ~/projects/{{PROJ}} && nvim --cmd 'set runtimepath+=~/.config/nvchad/' --cmd 'lua package.path = package.path .. ";{{home_directory()}}/.config/nvchad/lua/?.lua"' -u ~/.config/nvchad/init.lua . + # https://github.com/astral-sh/uv [unix] diff --git a/uts-plugins.lua b/uts-plugins.lua index 43043d2..7fc7b4b 100644 --- a/uts-plugins.lua +++ b/uts-plugins.lua @@ -63,7 +63,7 @@ local plugins = { { "kentookura/forester.nvim", -- before = { "nvim-cmp" }, - branch = "36-installation-and-initialization", + -- branch = "36-installation-and-initialization", -- tried removing this for the auto-completion to have a non-nil `forester_current_config` event = "VeryLazy", dependencies = {