From 79ce028bd7833e42a06455b3ac05a6b85db2cb6d Mon Sep 17 00:00:00 2001 From: yushyin Date: Mon, 14 Dec 2020 03:12:41 +0100 Subject: Vim: Add texlab lsp server for LaTeX --- zsh/.zprofile | 2 +- zsh/.zshrc | 4 +++- zsh/package.toml | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 zsh/package.toml (limited to 'zsh') diff --git a/zsh/.zprofile b/zsh/.zprofile index 0d2a4e3..b239aed 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -6,6 +6,6 @@ TEXMFCONFIG=~/.config/texlive TEXMFVAR=~/.cache/texlive export EDITOR VIMINIT TASKRC TEXMFHOME TEXMFCONFIG TEXMFVAR -eval "$(perl -I$HOME/.local/perl5/lib/perl5/ -Mlocal::lib=--deactivate-all,$HOME/.local/perl5)" +eval "$(api_ver=$(perl -MConfig -e'print $Config{api_version}') && perl -I$HOME/.local/perl5.${api_ver}/lib/perl5/ -Mlocal::lib=--deactivate-all,$HOME/.local/perl5.${api_ver})" [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx diff --git a/zsh/.zshrc b/zsh/.zshrc index ee48183..f74810d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -34,13 +34,15 @@ zstyle ':completion:*' use-perl on zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path $HOME/.cache/zsh/complcache zstyle ':completion:*:*:kill:*' command 'ps --forest -u$USER -o pid,%cpu,tty,cputime,cmd' -zstyle :compinstall filename "$HOME/.config/zsh/.zshrc" +zstyle :compinstall filename "$HOME/.zshrc" autoload -Uz compinit compinit -d $HOME/.cache/zsh/zcompdump # Misc typeset -U path path+=(~/.local/bin) +path+=(~/.ghcup/bin, ~/.cabal/bin) + REPORTTIME=2 PROMPT=": " RPROMPT="%1~" diff --git a/zsh/package.toml b/zsh/package.toml new file mode 100644 index 0000000..090d08e --- /dev/null +++ b/zsh/package.toml @@ -0,0 +1,7 @@ +[[files]] +source = './.zshrc' +dest = '~/.zshrc' + +[[files]] +source = './.zprofile' +dest = '~/.zprofile' -- cgit v1.2.3-24-g4f1b