From d8ee12c48895e3ec97df5ceaa7450b0a1e710e87 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 3 Jun 2019 13:46:18 +0200 Subject: Added vim completion, changed walpaper and switched search engine --- dwm/.xinitrc | 9 +------- dwm/lc | 4 ++-- qutebrowser/.config/qutebrowser/config.py | 8 +++++-- vim/.vimrc | 35 +++++++++++++++++++++++++++---- zsh/.zshrc | 1 + 5 files changed, 41 insertions(+), 16 deletions(-) diff --git a/dwm/.xinitrc b/dwm/.xinitrc index 3ac0572..2c0ba68 100644 --- a/dwm/.xinitrc +++ b/dwm/.xinitrc @@ -1,6 +1,6 @@ setxkbmap -layout us -variant altgr-intl -feh --bg-fill /home/julian/Pictures/defaultWall.* export _JAVA_AWT_WM_NONREPARENTING=1 +feh --bg-tile /home/julian/Pictures/defaultWall.* export TERM=st dbus-update-activation-environment --systemd DISPLAY @@ -16,13 +16,6 @@ xscreensaver & xss-lock -- xscreensaver-command --lock & xcompmgr & -if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent > ~/.ssh-agent-thing -fi -if [[ "$SSH_AGENT_PID" == "" ]]; then - eval "$(<~/.ssh-agent-thing)" -fi - while true; do dwm done & diff --git a/dwm/lc b/dwm/lc index 028088f..cff7362 100755 --- a/dwm/lc +++ b/dwm/lc @@ -39,7 +39,7 @@ handle_stuff() { fi if [ "$1" = "overleaf-render" ]; then - sh ~/Documents/overleafRenderer/compile.sh + st sh ~/Documents/overleafRenderer/compile.sh fi if [ "$1" = "caps-lock" ] || [ "$1" = "cl" ]; then @@ -50,7 +50,7 @@ handle_stuff() { vboxmanage startvm "Windows xp" fi if [ "$1" = "wall" ]; then - feh --bg-fill Pictures/defaultWall.* + feh --bg-tile Pictures/defaultWall.* fi if [ "$1" = "mic" ]; then amixer set Capture toggle diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index eaa2da7..c2caef1 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -1498,11 +1498,12 @@ c.url.default_page = 'https://www.startpage.com/' ## used by prepending the search engine name to the search term, e.g. ## `:open google qutebrowser`. ## Type: Dict -c.url.searchengines = {'STARTPAGE': 'https://www.startpage.com/do/dsearch?query={}', 'DEFAULT': 'https://www.google.com/search?q={}', 'ddg': 'https://duckduckgo.com/?q={}'} +c.url.searchengines = {'DEFAULT': 'https://www.startpage.com/do/dsearch?query={}', 'ggl': 'https://www.google.com/search?q={}', 'ddg': 'https://duckduckgo.com/?q={}'} ## Page(s) to open at the start. ## Type: List of FuzzyUrl, or FuzzyUrl -c.url.start_pages = ['https://www.google.dk/'] +#c.url.start_pages = ['https://www.google.dk/'] +c.url.start_pages = c.url.searchengines['DEFAULT'].split('/')[2] ## URL parameters to strip with `:yank url`. ## Type: List of String @@ -1822,3 +1823,6 @@ config.bind('J', 'tab-prev') # config.bind('', 'prompt-accept', mode='yesno') # config.bind('n', 'prompt-accept no', mode='yesno') # config.bind('y', 'prompt-accept yes', mode='yesno') + +## Julian Stuff +config.bind(',v', 'spawn vlc {url}') diff --git a/vim/.vimrc b/vim/.vimrc index 6e7b7ce..d4d24d3 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -14,7 +14,14 @@ set shellslash Plugin 'VundleVim/Vundle.vim' " Completion - Plugin 'Valloric/YouCompleteMe' + Plugin 'autozimu/LanguageClient-neovim' + if has('nvim') + Plugin 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } + else + Plugin 'Shougo/deoplete.nvim' + Plugin 'roxma/nvim-yarp' + Plugin 'roxma/vim-hug-neovim-rpc' + endif Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' @@ -43,6 +50,16 @@ set shellslash colorscheme horizon +" Completion +let g:LanguageClient_serverCommands = { + \ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls' ], + \ 'c': ['/usr/bin/cquery', '--log-file=/tmp/cq.log', '--init={"cacheDirectory":"/tmp/cquery/"}' ] + \ } + +let g:LanguageClient_useVirtualText = 0 +let g:LanguageClient_diagnosticsEnable = 0 +let g:deoplete#enable_at_startup = 1 + syntax enable set number relativenumber @@ -53,7 +70,6 @@ set noexpandtab let g:tex_flavor='latex' - if has('nvim') set inccommand=split endif @@ -84,8 +100,16 @@ set completeopt=menuone,preview " Keymapping map :NERDTreeToggle map :TagbarToggle - inoremap pumvisible() ? "\" : "\" - inoremap pumvisible() ? "\" : "\" + + inoremap pumvisible() ? "\" : "\" + inoremap pumvisible() ? "\" : "\\" + inoremap pumvisible() ? "\" : "\\" + + nnoremap :call LanguageClient_contextMenu() + nnoremap K :call LanguageClient#textDocument_hover() + nnoremap gd :call LanguageClient#textDocument_definition() + nnoremap :call LanguageClient#textDocument_rename() + nnoremap :b " When moving more lines make it a jump. If couns i 2 it will run m'2j, @@ -108,3 +132,6 @@ set completeopt=menuone,preview autocmd BufRead,BufNewFile *.ino set filetype=c autocmd BufRead,BufNewFile *.asc set filetype=asciidoc autocmd FileType python setlocal completeopt-=preview + +" Path settings + let g:ycm_rust_src_path = '~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src' diff --git a/zsh/.zshrc b/zsh/.zshrc index 9559d5d..7e3cabb 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -155,3 +155,4 @@ command_not_found_handler () { # opam configuration test -r /home/julian/.opam/opam-init/init.zsh && . /home/julian/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true +export ANSIBLE_NOCOWS=1 -- cgit v1.2.3