From e9983dea084dcff1947bddead71c7951cf4adbcf Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 22 Aug 2019 20:35:27 +0200 Subject: Added i3 config stuff, and changed vim auto completion again --- i3/.config/i3/config | 4 ++++ i3/.xinitrc | 5 +++-- i3/Scripts/lc | 1 + vim/.vimrc | 51 ++++++++++++++++++++++----------------------------- 4 files changed, 30 insertions(+), 31 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index e64b59a..30adf2b 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -118,6 +118,10 @@ bindsym $mod+minus scratchpad show # Mail scratchpad bindsym $mod+m [title="^alot"] scratchpad show +# Multiple monitors +bindsym $mod+period move workspace to output right +bindsym $mod+comma move workspace to output left + # switch to workspace bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 diff --git a/i3/.xinitrc b/i3/.xinitrc index 8c4dd24..5088181 100644 --- a/i3/.xinitrc +++ b/i3/.xinitrc @@ -1,8 +1,8 @@ setxkbmap -layout us -variant altgr-intl export _JAVA_AWT_WM_NONREPARENTING=1 feh --bg-tile /home/julian/Pictures/defaultWall.* -export TERM=st -export TERMINAL=st +export TERM=termite +export TERMINAL=termite dbus-update-activation-environment --systemd DISPLAY @@ -12,6 +12,7 @@ eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets) xmodmap .Xmodmap xcape -e "Control_R=Escape" +dunst & nm-applet & xscreensaver & diff --git a/i3/Scripts/lc b/i3/Scripts/lc index 26b4c13..dd2acc7 100755 --- a/i3/Scripts/lc +++ b/i3/Scripts/lc @@ -59,6 +59,7 @@ handle_stuff() { fi if [ "$1" = "mail" ]; then Scripts/mailSync + dunstify "Mail" "$(notmuch count tag:unread and tag:inbox) unread mail" fi # Launch diff --git a/vim/.vimrc b/vim/.vimrc index d4d24d3..e72a47f 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -14,14 +14,11 @@ set shellslash Plugin 'VundleVim/Vundle.vim' " Completion - 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 'prabirshrestha/async.vim' + "Plugin 'prabirshrestha/vim-lsp' + Plugin 'fatih/vim-go' + Plugin 'ajh17/VimCompletesMe' + Plugin 'ludovicchabant/vim-gutentags' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' @@ -51,14 +48,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 + " 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 + let g:go_def_mode='gopls' + let g:go_info_mode='gopls' syntax enable set number relativenumber @@ -98,19 +97,16 @@ set hidden set completeopt=menuone,preview " Keymapping - map :NERDTreeToggle map :TagbarToggle - inoremap pumvisible() ? "\" : "\" - inoremap pumvisible() ? "\" : "\\" - inoremap pumvisible() ? "\" : "\\" + nnoremap :b - nnoremap :call LanguageClient_contextMenu() - nnoremap K :call LanguageClient#textDocument_hover() - nnoremap gd :call LanguageClient#textDocument_definition() - nnoremap :call LanguageClient#textDocument_rename() + nnoremap QuickNext :cnext :call repeat#set("\QuickNext") + nnoremap QuickPrev :cprev :call repeat#set("\QuickPrev") + nnoremap ,, :copen - nnoremap :b + nmap ,n QuickNext + nmap ,N QuickPrev " When moving more lines make it a jump. If couns i 2 it will run m'2j, " thus storing it on the jumplist and then jumping @@ -120,9 +116,8 @@ set completeopt=menuone,preview " Leader stuff let mapleader=" " - map z :Goyo map mm :make V=1 - map mf :!make flash V=1 + map mf :make flash V=1 " Example on filetype specific " autocmd FileType tex map o :w !detex \| wc -w @@ -133,5 +128,3 @@ set completeopt=menuone,preview 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' -- cgit v1.2.3