Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Env Tweaks #156

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions configs/neovim/lazyvim.json

This file was deleted.

3 changes: 0 additions & 3 deletions install/app-neovim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@ if [ ! -d "$HOME/.config/nvim" ]; then
mkdir -p ~/.config/nvim/plugin/after
cp ~/.local/share/omakub/configs/neovim/transparency.lua ~/.config/nvim/plugin/after/
cp ~/.local/share/omakub/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua

# Enable default extras
cp ~/.local/share/omakub/configs/neovim/lazyvim.json ~/.config/nvim/lazyvim.json
fi
14 changes: 14 additions & 0 deletions install/select-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ for language in $languages; do
;;
Node.js)
mise use --global node@lts

# Enable the extras plugins in NeoVim
jq '.extras |= (. + ["lazyvim.plugins.extras.lang.typescript"] | unique)' ~/.config/nvim/lazyvim.json >tmp.json && mv tmp.json ~/.config/nvim/lazyvim.json

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

;;
Go)
mise use --global go@latest
code --install-extension golang.go

# Enable the extras plugins in NeoVim
jq '.extras |= (. + ["lazyvim.plugins.extras.lang.go"] | unique)' ~/.config/nvim/lazyvim.json >tmp.json && mv tmp.json ~/.config/nvim/lazyvim.json
;;
Java)
mise use --global java@latest
Expand All @@ -31,6 +37,14 @@ for language in $languages; do
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --quiet && sudo mv composer.phar /usr/local/bin/composer
rm composer-setup.php

# Enable the extras plugins in NeoVim
jq '.extras |= (. + ["lazyvim.plugins.extras.lang.php"] | unique)' ~/.config/nvim/lazyvim.json >tmp.json && mv tmp.json ~/.config/nvim/lazyvim.json

# Configure PHP's LSP to use intelephense instead of phpactor (default)
if ! grep -q 'php_lsp' ~/.config/nvim/lua/config/options.lua; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

echo 'vim.g.lazyvim_php_lsp = "intelephense"' >>~/.config/nvim/lua/config/options.lua
fi
;;
esac
done
Expand Down