From d586ad2480561363c6a4eb6af818c8d59d6923ce Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 29 Sep 2019 16:02:21 +0200 Subject: Switched to firefox and did vim stuff --- i3/.config/i3/config | 1 + vim/.vimrc | 41 ++++++++++++++++++++++++++++++++++++++--- zsh/.zshrc | 21 ++++++++++++++------- 3 files changed, 53 insertions(+), 10 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 30adf2b..ed66285 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -160,6 +160,7 @@ bindsym $mod+semicolon exec --no-startup-id Scripts/lc --dmenu # default app workspaces assign [class="qutebrowser"] $ws9 +assign [class="firefox"] $ws9 assign [class="evolution"] $ws8 # reload the configuration file diff --git a/vim/.vimrc b/vim/.vimrc index a9c191e..02db41d 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -40,16 +40,23 @@ set shellslash " File support Plugin 'cespare/vim-toml' + Plugin 'vim-scripts/TagHighlight' + Plugin 'lervag/vimtex' + Plugin 'LnL7/vim-nix' - " Tagbar use - Plugin 'majutsushi/tagbar' - + Plugin 'junegunn/vim-easy-align' call vundle#end() " required filetype plugin indent on " required colorscheme rakr +" Start interactive EasyAlign in visual mode (e.g. vipga) +xmap ga (EasyAlign) + +" Start interactive EasyAlign for a motion/text object (e.g. gaip) +nmap ga (EasyAlign) + " Completion " let g:LanguageClient_serverCommands = { " \ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls' ], @@ -131,3 +138,31 @@ set completeopt=menuone,preview autocmd BufRead,BufNewFile *.asc set filetype=asciidoc autocmd FileType python setlocal completeopt-=preview +" Highlightning + let g:DoNotGenerateTags = 1 + " Remove pink color from functions + highlight clear Function + " Remove color from struct members + highlight link Member NonText + + +" Spell check + set spelllang=en + autocmd FileType tex set spell + +" Latex support + let g:vimtex_quickfix_blgparser = {'disable': 1} + let g:vimtex_quickfix_open_on_warning = 0 + let g:vimtex_compiler_latexmk = { + \ 'backend' : 'nvim', + \ 'background' : 0, + \ 'build_dir' : '', + \ 'callback' : 1, + \ 'continuous' : 0, + \ 'executable' : 'latexmk', + \ 'hooks' : [], + \ 'options' : [ + \ '-file-line-error', + \ '-synctex=1', + \ ], + \} diff --git a/zsh/.zshrc b/zsh/.zshrc index 929b2e0..2842d19 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -6,7 +6,6 @@ export TERM="xterm-256color" # Path to your oh-my-zsh installation. export ZSH=/home/julian/.oh-my-zsh -echo "Setting theme" # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loaded. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes @@ -50,14 +49,12 @@ COMPLETION_WAITING_DOTS="true" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder -echo "Loading plugins" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=(git sudo pass taskwarrior) -echo "Loading zsh" source $ZSH/oh-my-zsh.sh # User configuration @@ -89,7 +86,6 @@ export LANG=en_US.UTF-8 # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -echo "Setting up bullet train" BULLETTRAIN_PROMPT_ORDER=( git context @@ -102,7 +98,6 @@ BULLETTRAIN_PROMPT_ORDER=( PATH=~/go/bin:$PATH #fortune -n 100 | cowsay -echo "Loading powerline" if [[ -r /usr/share/powerline/bindings/zsh/powerline.zsh ]]; then source /usr/share/powerline/bindings/zsh/powerline.zsh fi @@ -121,8 +116,6 @@ git config --global alias.lol "log --graph --decorate --abbrev-commit --all" alias hej="echo 'Hej, hvordan går det?'" export EDITOR=nvim -echo "Done" -clear #Setup ssh agent @@ -158,3 +151,17 @@ test -r /home/julian/.opam/opam-init/init.zsh && . /home/julian/.opam/opam-init/ export ANSIBLE_NOCOWS=1 export PATH=$HOME/Scripts:$PATH + +# Creates a new shell in the current shell +alias new="ZSH_NEST=$((ZSH_NEST + 1)) zsh" + +# If we are a subshell add it to the PS1 +if [ ! -z "$ZSH_NEST" ] +then + export PS1=$(echo $PS1 | sed "s:}%:}[$ZSH_NEST]%:") +fi + + +bindkey "^P" up-line-or-search + + -- cgit v1.2.3