diff options
-rw-r--r-- | dwm/.xinitrc | 9 | ||||
-rwxr-xr-x | dwm/lc | 4 | ||||
-rw-r--r-- | qutebrowser/.config/qutebrowser/config.py | 8 | ||||
-rw-r--r-- | vim/.vimrc | 35 | ||||
-rw-r--r-- | 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 & @@ -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('<Return>', '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}') @@ -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 <C-n> :NERDTreeToggle<CR> map <F4> :TagbarToggle<CR> - inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" - inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" + + inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" + inoremap <expr><C-j> pumvisible() ? "\<C-n>" : "\<C-x>\<C-o>" + inoremap <expr><C-k> pumvisible() ? "\<C-p>" : "\<C-x>\<C-o>" + + nnoremap <F5> :call LanguageClient_contextMenu()<CR> + nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR> + nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR> + nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR> + nnoremap <C-b> :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' @@ -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 |