Skip to content

Commit

Permalink
Zinit, Neovim: option to not load plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Nov 27, 2024
1 parent 3b5f1a1 commit ae4d9e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ vim.api.nvim_set_keymap(
{ silent = true, noremap = true, desc = "Close All Sub-windows" }
)

require("config.lazy")
local no_lazy = os.getenv("NO_LAZY")
if no_lazy ~= "1" then
require("config.lazy")
end

-- Must be written at the last. see :help 'secure'.
vim.opt.secure = true
3 changes: 3 additions & 0 deletions .config/shell/zinit.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
##################################
# Zinit Options & Plugins
##################################
if [ "$NO_ZINIT" = '1' ]; then
return 0
fi

declare -A ZINIT
ZINIT[PLUGINS_DIR]="$SHELL_CONFIG_HOME/plugins"
Expand Down

0 comments on commit ae4d9e6

Please sign in to comment.