Add lua support
This commit is contained in:
parent
83a55aa3a7
commit
f4689cfa29
5 changed files with 21 additions and 10 deletions
19
.setenv.sh
19
.setenv.sh
|
@ -1,18 +1,21 @@
|
|||
export TERM="xterm-256color"
|
||||
export GOPATH=`realpath "$HOME/go"`
|
||||
|
||||
export PATH="$GOPATH/bin:$PATH"
|
||||
export PATH="$PATH:$HOME/.rvm/bin"
|
||||
|
||||
export PATH="$HOME/programs:$PATH"
|
||||
export PATH="$HOME/tools:$PATH"
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
export RUST_SRC_PATH=$HOME/dev/rust/src
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
export GOPATH=`realpath "$HOME/go"`
|
||||
export PATH="$GOPATH/bin:$PATH"
|
||||
export PATH="$PATH:$HOME/.rvm/bin"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
||||
export EDITOR="vim"
|
||||
export KEYTIMEOUT=1
|
||||
export VAGRANT_DEFAULT_PROVIDER=virtualbox
|
||||
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
eval $(luarocks path --bin)
|
||||
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
"args": [],
|
||||
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
|
||||
"filetypes": ["go"]
|
||||
},
|
||||
"lua": {
|
||||
"command": "lua-lsp",
|
||||
"filetypes": ["lua"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
1
.zshrc
1
.zshrc
|
@ -45,4 +45,3 @@ export PATH="$PATH:$HOME/.rvm/bin"
|
|||
alias tmate="tmux detach-client -E 'tmate;tmux'"
|
||||
|
||||
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
|
|
@ -188,6 +188,7 @@ if [[ -z $NORUBY ]]; then
|
|||
rvm install ruby --disable-binary
|
||||
fi
|
||||
|
||||
# go
|
||||
if [[ -z $NO_GO ]]; then
|
||||
GOPATH="$HOME/go"
|
||||
export GOPATH=`realpath "$GOPATH"`
|
||||
|
@ -198,6 +199,10 @@ if [[ -z $NO_GO ]]; then
|
|||
go get -u -t golang.org/x/tools/cmd/gopls
|
||||
fi
|
||||
|
||||
# lua
|
||||
luarocks install --local --server=http://luarocks.org/dev lua-lsp
|
||||
luarocks install --local luacheck
|
||||
|
||||
if [[ -z $NOVIM ]]; then
|
||||
if [[ ! -d ~/.fzf ]]; then
|
||||
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
||||
|
|
|
@ -16,7 +16,7 @@ if [[ -z $NOUPGRADE ]]; then
|
|||
sudo dnf -y upgrade --best --allowerasing
|
||||
fi
|
||||
|
||||
sudo dnf -y --best --allowerasing install tmux atop zsh firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel whois curl pv gsmartcontrol python-pip mercurial python3-devel libxslt-devel libjpeg-turbo-devel cmake gtk2-devel intltool gparted glances dkms kernel-devel gimp git xz util-linux-user dnf-automatic kdiff3 yum-utils util-linux-user ncurses-devel qt5-linguist qtkeychain-qt5-devel archivemount keepass splix gutenprint-cups cups-bjnp golang redhat-rpm-config pcsc-lite-devel pcsc-tools pcsc-lite yubico-piv-tool yubikey-personalization-gui xloadimage yp-tools closure-compiler optipng jpegoptim grub2 grub2-efi dracut dracut-tools openssl-devel fail2ban syncthing ansible gnome-tweaks xclip wget wireguard-dkms wireguard-tools lldb python-lldb kdbg zlib-devel libuuid-devel libattr-devel libblkid-devel libselinux-devel libudev-devel parted lsscsi ksh openssl-devel elfutils-libelf-devel libtirpc-devel kernel-devel ffmpeg-libs dnf-plugins-core restic duply docker steam clang llvm-devel clang-devel libsodium-devel chromium vim tlp tlp-rdw
|
||||
sudo dnf -y --best --allowerasing install tmux atop zsh firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel whois curl pv gsmartcontrol python-pip mercurial python3-devel libxslt-devel libjpeg-turbo-devel cmake gtk2-devel intltool gparted glances dkms kernel-devel gimp git xz util-linux-user dnf-automatic kdiff3 yum-utils util-linux-user ncurses-devel qt5-linguist qtkeychain-qt5-devel archivemount keepass splix gutenprint-cups cups-bjnp golang redhat-rpm-config pcsc-lite-devel pcsc-tools pcsc-lite yubico-piv-tool yubikey-personalization-gui xloadimage yp-tools closure-compiler optipng jpegoptim grub2 grub2-efi dracut dracut-tools openssl-devel fail2ban syncthing ansible gnome-tweaks xclip wget wireguard-dkms wireguard-tools lldb python-lldb kdbg zlib-devel libuuid-devel libattr-devel libblkid-devel libselinux-devel libudev-devel parted lsscsi ksh openssl-devel elfutils-libelf-devel libtirpc-devel kernel-devel ffmpeg-libs dnf-plugins-core restic duply docker steam clang llvm-devel clang-devel libsodium-devel chromium vim tlp tlp-rdw lua lua-devel luarocks
|
||||
|
||||
sudo cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak
|
||||
sudo cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf
|
||||
|
|
Loading…
Reference in a new issue