Skip to content

Instantly share code, notes, and snippets.

@zthxxx
Last active September 2, 2024 14:06
Show Gist options
  • Save zthxxx/022b73e0f82af510a135100b0a876c8c to your computer and use it in GitHub Desktop.
Save zthxxx/022b73e0f82af510a135100b0a876c8c to your computer and use it in GitHub Desktop.
# https://code.visualstudio.com/docs/editor/command-line#_working-with-extensions
# code --list-extensions
code --uninstall-extension cduruk.thrift
code --uninstall-extension byted-sec.bytesec-vscode
code --uninstall-extension byted-ide.ppe-debug
code --uninstall-extension byted-ide.ftt
code --uninstall-extension byted-ide.cloud-dev-task
code --uninstall-extension byted-ide.cloud-dev-debug
code --install-extension shalldie.background
code --install-extension GitHub.copilot
code --install-extension GitHub.copilot-labs
code --install-extension aeschli.vscode-css-formatter
code --install-extension bradlc.vscode-tailwindcss
code --install-extension ktiays.aicursor
# for `pynvim` using `/usr/bin/pip`
sudo ln -fs /usr/local/bin/pip /usr/bin/pip
# install neovim
## https://gist.github.com/zthxxx/8e759ebfe860a596f65ed0e29e9ffdcf
# npm i -g neovim
brew install neovim rust
# install without asking confirm plugins (asking default in official)
curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh | LV_BRANCH='release-1.2/neovim-0.8' bash /dev/stdin --yes
# I dont use `lvim` (add `lvim` to `$PATH`) or `~/.local/bin/lvim`,
# so make nvim start with lunarvim
echo '
export LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-"${HOME}/.local/share/lunarvim"}"
export LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"${HOME}/.config/lvim"}"
export LUNARVIM_CACHE_DIR="${LUNARVIM_CACHE_DIR:-"${HOME}/.cache/lvim"}"
export EDITOR=nvim
' >> ~/.zshrc
ln -fs ~/.local/share/lunarvim/lvim ~/.config/nvim
curl -vL https://gist.githubusercontent.com/zthxxx/8e759ebfe860a596f65ed0e29e9ffdcf/raw/7d6defa40002814587b25270076503a3a1ec3da5/config.lua -o ~/.config/lvim/config.lua
# to fix https://www.reddit.com/r/lunarvim/comments/12d05bq/how_to_solve_error_detected_while_processing/
cd ~/.local/share/lunarvim/site/pack/packer/start/nvim-treesitter/
gfco master
# maybe need to manually run `:LvimSyncCorePlugins` when starting `nvim` for the first time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment