much happened

laptop_arbeit
Dario Ernst 6 years ago
parent 1abe77b02d
commit 8ce5e4d47b

@ -17,18 +17,18 @@ workspace "u:s" output eDP-1
workspace "i:s" output eDP-1
workspace "o:s" output eDP-1
#--
workspace "1:l" output DP-2-1-8
workspace "2:l" output DP-2-1-8
workspace "3:l" output DP-2-1-8
workspace "4:l" output DP-2-1-8
workspace "5:l" output DP-2-1-8
workspace "6:l" output DP-2-1-8
workspace "1:l" output DP-2-1
workspace "2:l" output DP-2-1
workspace "3:l" output DP-2-1
workspace "4:l" output DP-2-1
workspace "5:l" output DP-2-1
workspace "6:l" output DP-2-1
#--
workspace "7:r" output DP-2-2-8
workspace "8:r" output DP-2-2-8
workspace "9:r" output DP-2-2-8
workspace "0:r" output DP-2-2-8
workspace "ß:r" output DP-2-2-8
workspace "7:r" output DP-2-2
workspace "8:r" output DP-2-2
workspace "9:r" output DP-2-2
workspace "0:r" output DP-2-2
workspace "ß:r" output DP-2-2
# Font for window titles. Will also be used by the bar unless a different font

@ -0,0 +1,4 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =2
let g:netrw_dirhist_1='/home/dario/source/pydadi/ui/src'
let g:netrw_dirhist_2='/home/dario/source/pydadi/ui'

@ -334,11 +334,11 @@ function! s:progress_opt(base)
\ s:git_version_requirement(1, 7, 1) ? '--progress' : ''
endfunction
if s:is_win
function! s:rtp(spec)
return s:path(a:spec.dir . get(a:spec, 'rtp', ''))
endfunction
function! s:rtp(spec)
return s:path(a:spec.dir . get(a:spec, 'rtp', ''))
endfunction
if s:is_win
function! s:path(path)
return s:trim(substitute(a:path, '/', '\', 'g'))
endfunction
@ -353,25 +353,29 @@ if s:is_win
" Copied from fzf
function! s:wrap_cmds(cmds)
return map(['@echo off', 'for /f "tokens=4" %%a in (''chcp'') do set origchcp=%%a', 'chcp 65001 > nul'] +
\ (type(a:cmds) == type([]) ? a:cmds : [a:cmds]) +
\ ['chcp %origchcp% > nul'], 'v:val."\r"')
let use_chcp = executable('sed')
return map([
\ '@echo off',
\ 'setlocal enabledelayedexpansion']
\ + (use_chcp ? [
\ 'for /f "usebackq" %%a in (`chcp ^| sed "s/[^0-9]//gp"`) do set origchcp=%%a',
\ 'chcp 65001 > nul'] : [])
\ + (type(a:cmds) == type([]) ? a:cmds : [a:cmds])
\ + (use_chcp ? ['chcp !origchcp! > nul'] : [])
\ + ['endlocal'],
\ 'v:val."\r"')
endfunction
function! s:batchfile(cmd)
let batchfile = tempname().'.bat'
call writefile(s:wrap_cmds(a:cmd), batchfile)
let cmd = plug#shellescape(batchfile, {'shell': &shell, 'script': 1})
if &shell =~# 'powershell\.exe$'
let cmd = plug#shellescape(batchfile, {'shell': &shell, 'script': 0})
if &shell =~# 'powershell\.exe'
let cmd = '& ' . cmd
endif
return [batchfile, cmd]
endfunction
else
function! s:rtp(spec)
return s:dirpath(a:spec.dir . get(a:spec, 'rtp', ''))
endfunction
function! s:path(path)
return s:trim(a:path)
endfunction
@ -818,6 +822,7 @@ function! s:chsh(swap)
endfunction
function! s:bang(cmd, ...)
let batchfile = ''
try
let [sh, shellcmdflag, shrd] = s:chsh(a:0)
" FIXME: Escaping is incomplete. We could use shellescape with eval,
@ -831,7 +836,7 @@ function! s:bang(cmd, ...)
finally
unlet g:_plug_bang
let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd]
if s:is_win
if s:is_win && filereadable(batchfile)
call delete(batchfile)
endif
endtry
@ -910,7 +915,7 @@ function! s:checkout(spec)
let output = s:system('git rev-parse HEAD', a:spec.dir)
if !v:shell_error && !s:hash_match(sha, s:lines(output)[0])
let output = s:system(
\ 'git fetch --depth 999999 && git checkout '.s:esc(sha).' --', a:spec.dir)
\ 'git fetch --depth 999999 && git checkout '.plug#shellescape(sha).' --', a:spec.dir)
endif
return output
endfunction
@ -1028,7 +1033,7 @@ function! s:update_impl(pull, force, args) abort
let s:clone_opt = get(g:, 'plug_shallow', 1) ?
\ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : ''
if has('win32unix')
if has('win32unix') || has('wsl')
let s:clone_opt .= ' -c core.eol=lf -c core.autocrlf=input'
endif
@ -1115,12 +1120,12 @@ function! s:update_finish()
endif
endif
call s:log4(name, 'Checking out '.tag)
let out = s:system('git checkout -q '.s:esc(tag).' -- 2>&1', spec.dir)
let out = s:system('git checkout -q '.plug#shellescape(tag).' -- 2>&1', spec.dir)
else
let branch = s:esc(get(spec, 'branch', 'master'))
call s:log4(name, 'Merging origin/'.branch)
let out = s:system('git checkout -q '.branch.' -- 2>&1'
\. (has_key(s:update.new, name) ? '' : ('&& git merge --ff-only origin/'.branch.' 2>&1')), spec.dir)
let branch = get(spec, 'branch', 'master')
call s:log4(name, 'Merging origin/'.s:esc(branch))
let out = s:system('git checkout -q '.plug#shellescape(branch).' -- 2>&1'
\. (has_key(s:update.new, name) ? '' : ('&& git merge --ff-only '.plug#shellescape('origin/'.branch).' 2>&1')), spec.dir)
endif
if !v:shell_error && filereadable(spec.dir.'/.gitmodules') &&
\ (s:update.force || has_key(s:update.new, name) || s:is_updated(spec.dir))
@ -1164,7 +1169,7 @@ function! s:job_abort()
silent! call job_stop(j.jobid)
endif
if j.new
call s:system('rm -rf ' . plug#shellescape(g:plugs[name].dir))
call s:rm_rf(g:plugs[name].dir)
endif
endfor
let s:jobs = {}
@ -2000,9 +2005,9 @@ function! plug#shellescape(arg, ...)
let opts = a:0 > 0 && type(a:1) == s:TYPE.dict ? a:1 : {}
let shell = get(opts, 'shell', s:is_win ? 'cmd.exe' : 'sh')
let script = get(opts, 'script', 1)
if shell =~# 'cmd\.exe$'
if shell =~# 'cmd\.exe'
return s:shellesc_cmd(a:arg, script)
elseif shell =~# 'powershell\.exe$' || shell =~# 'pwsh$'
elseif shell =~# 'powershell\.exe' || shell =~# 'pwsh$'
return s:shellesc_ps1(a:arg)
endif
return shellescape(a:arg)
@ -2043,6 +2048,7 @@ function! s:with_cd(cmd, dir, ...)
endfunction
function! s:system(cmd, ...)
let batchfile = ''
try
let [sh, shellcmdflag, shrd] = s:chsh(1)
let cmd = a:0 > 0 ? s:with_cd(a:cmd, a:1) : a:cmd
@ -2052,7 +2058,7 @@ function! s:system(cmd, ...)
return system(cmd)
finally
let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd]
if s:is_win
if s:is_win && filereadable(batchfile)
call delete(batchfile)
endif
endtry
@ -2375,6 +2381,7 @@ function! s:preview_commit()
wincmd P
endif
setlocal previewwindow filetype=git buftype=nofile nobuflisted modifiable
let batchfile = ''
try
let [sh, shellcmdflag, shrd] = s:chsh(1)
let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && git show --no-color --pretty=medium '.sha
@ -2384,7 +2391,7 @@ function! s:preview_commit()
execute 'silent %!' cmd
finally
let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd]
if s:is_win
if s:is_win && filereadable(batchfile)
call delete(batchfile)
endif
endtry
@ -2478,7 +2485,7 @@ function! s:revert()
return
endif
call s:system('git reset --hard HEAD@{1} && git checkout '.s:esc(g:plugs[name].branch).' --', g:plugs[name].dir)
call s:system('git reset --hard HEAD@{1} && git checkout '.plug#shellescape(g:plugs[name].branch).' --', g:plugs[name].dir)
setlocal modifiable
normal! "_dap
setlocal nomodifiable

File diff suppressed because it is too large Load Diff

@ -0,0 +1,8 @@
{
"diagnostic.messageTarget": "echo",
"signature.target": "echo",
"suggest.maxCompleteItemCount": 20,
"coc.preferences.hoverTarget": "echo",
"python.jediEnabled": false,
"suggest.timeout": 15000
}

@ -1,8 +0,0 @@
" Make nerdtree look nice
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
let g:NERDTreeWinSize = 30
"tabs
" Focus in the main content window
let g:nerdtree_tabs_focus_on_files = 1

@ -1,14 +0,0 @@
" use ag
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
" auto-close results window
let g:ack_autoclose = 1
" use background search
"let g:ack_use_dispatch = 1
" C-* to search word under cursor
noremap <C-s>* :Ack <cword><cr>

@ -1,9 +1,9 @@
set laststatus=2
" disable tabline if single buffer
let g:airline#extensions#tabline#enabled = 1
" let g:airline_powerline_fonts = 1
" let g:airline_left_sep = "\ue0b0"
" let g:airline_left_alt_sep = "\ue0b1"
" let g:airline_right_sep = "\ue0b6"
" let g:airline#extensions#virtualenv#enabled = 1
" let g:airline_section_z = airline#section#create(["\uE0A1" . '%{line(".")}' . "\uE0A3" . '%{col(".")}'])
" tagbar integration
let g:airline#extensions#tagbar#enabled = 1
" show full tag
let g:airline#extensions#tagbar#flags = 'f'

@ -0,0 +1,61 @@
" if hidden is not set, TextEdit might fail.
set hidden
" Some servers have issues with backup files, see #649
set nobackup
set nowritebackup
" Better display for messages
set cmdheight=2
" You will have bad experience for diagnostic messages when it's default 4000.
set updatetime=300
" don't give |ins-completion-menu| messages.
set shortmess+=c
" always show signcolumns
set signcolumn=yes
" useful key shortcuts
nmap <silent> rn <Plug>(coc-rename)
nmap <silent> td <Plug>(coc-definition)
nmap <silent> ty <Plug>(coc-type-definition)
nmap <silent> ti <Plug>(coc-implementation)
nmap <silent> tr <Plug>(coc-references)
" Use tab for trigger completion with characters ahead and navigate.
" Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" Use <c-space> to trigger completion.
inoremap <silent><expr> <c-space> coc#refresh()
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current position.
" Coc only does snippet and additional edit on confirm.
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
" Or use `complete_info` if your vim support it, like:
" inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
" Use K to show documentation in preview window
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
" Highlight symbol under cursor on CursorHold
autocmd CursorHold * silent call CocActionAsync('highlight')

@ -1,25 +0,0 @@
set cst
set csre
"list of reference
nmap <unique> <C-s>s :cs find s <C-R>=expand("<cword>")<CR><CR>
"definition
nmap <unique> <C-s>g :cs find g <C-R>=expand("<cword>")<CR><CR>
"call
nmap <unique> <C-s>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <unique> <C-s>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <unique> <C-s>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <unique> <C-s>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <unique> <C-s>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <unique> <C-s>d :cs find d <C-R>=expand("<cword>")<CR><CR>
function! LoadCscope()
let db = findfile("cscope.out", ".;")
if (!empty(db))
let path = strpart(db, 0, match(db, "/cscope.out$"))
set nocscopeverbose " suppress 'duplicate connection' error
exe "cs add " . db . " " . path
set cscopeverbose
endif
endfunction
au BufEnter /* call LoadCscope()

@ -1,12 +1,2 @@
" r if theres a .git, use ls-commands (honoring gitignore)
"let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
"" all dem files
"let g:ctrlp_max_files = 1000000
"
"let g:ctrlp_cmd = 'CtrlPLastMode'
"let g:ctrlp_extensions = ['buffertag', 'tag', 'line', 'dir']
"
"nmap <unique> <C-e> :CtrlPBuffer<CR>
nnoremap <C-p> :FuzzyOpen<CR>

@ -0,0 +1 @@
nnoremap ,f :CtrlSF<CR>

@ -1,20 +0,0 @@
set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches
set completeopt-=preview
" deoplete options
let g:deoplete#enable_at_startup = 1
inoremap <silent><expr> <Tab>
\ pumvisible() ? "\<C-n>" : "<Tab>"
" deoplete-clang opions
"let g:deoplete#sources#clang#libclang_path = "/usr/lib/llvm-3.8/lib/libclang.so"
"let g:deoplete#sources#clang#clang_header = "/usr/lib/llvm-3.8/include/clang"
"let g:deoplete#sources#ternjs#tern_bin = '/usr/local/bin/tern'
"let g:deoplete#sources#ternjs#timeout = 1
"let g:deoplete#sources#ternjs#depths = 1
"let g:deoplete#sources#ternjs#case_insensitive = 1
"let g:deoplete#sources#ternjs#guess = 0
"let g:deoplete#sources#ternjs#include_keywords = 1
call deoplete#custom#source('LC', 'rank', 1000)
call deoplete#custom#source('jedi', 'rank', 900)

@ -1 +0,0 @@
let g:jedi#completions_enabled = 0

@ -1 +0,0 @@
"autocmd! BufWritePost * Neomake

@ -1,2 +1,2 @@
nmap <F8> :TagbarToggle<CR>
nmap <silent> tb :TagbarOpenAutoClose<CR>

@ -1,53 +1,35 @@
call g:plug#begin('~/.nvim-plugins')
Plug 'bling/vim-airline'
Plug 'nanotech/jellybeans.vim'
Plug 'tomasr/molokai'
Plug 'morhetz/gruvbox'
Plug 'rakr/vim-one'
Plug 'tpope/vim-fugitive'
"Plug 'sheerun/vim-polyglot'
"Plug 'benekastah/neomake'
" Commenting
" Plug 'scrooloose/nerdcommenter' fucks up Autocompletion?
" Autocompletion
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/neoinclude.vim'
"Plug 'zchee/deoplete-clang'
Plug 'zchee/deoplete-jedi'
"Plug 'jistr/vim-nerdtree-tabs'
"Plug 'scrooloose/nerdtree'
"Plug 'ctrlpvim/ctrlp.vim'
" Fuzzy open
Plug 'cloudhead/neovim-fuzzy'
" Plug 'rking/ag.vim'
" Plug 'mileszs/ack.vim'
Plug 'AndrewRadev/splitjoin.vim'
Plug 'davidhalter/jedi-vim'
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Rg project grep
" Plug 'jremmen/vim-ripgrep'
Plug 'dyng/ctrlsf.vim'
"Plug 'tpope/vim-commentary'
"Plug 'easymotion/vim-easymotion'
"Plug 'terryma/vim-multiple-cursors'
Plug 'Raimondi/delimitMate'
" Completion and stuff
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" session mgmt
"Plug 'tpope/vim-obsession'
" graphql syntax highlighting
Plug 'jparise/vim-graphql'
" display marks
"Plug 'kshenoy/vim-signature'
" vuejs files
Plug 'posva/vim-vue'
" tag sidebar
"Plug 'majutsushi/tagbar'
" Python formatter
Plug 'psf/black'
" ~magic~?
"Plug 'tpope/vim-abolish'
" tag finder
Plug 'majutsushi/tagbar'
" tree-view for undo buffer wtf
"Plug 'mbbill/undotree'
" auto-matching for parentheses
Plug 'Raimondi/delimitMate'
call g:plug#end()

Loading…
Cancel
Save