summary refs log tree commit diff
path: root/.vim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/plugin')
-rw-r--r--.vim/after/plugin/line_bufferline.vim30
-rw-r--r--.vim/after/plugin/line_obsession.vim10
-rw-r--r--.vim/after/plugin/neomake.vim85
-rw-r--r--.vim/after/plugin/writing.vim92
4 files changed, 0 insertions, 217 deletions
diff --git a/.vim/after/plugin/line_bufferline.vim b/.vim/after/plugin/line_bufferline.vim
deleted file mode 100644
index 551790f..0000000
--- a/.vim/after/plugin/line_bufferline.vim
+++ /dev/null
@@ -1,30 +0,0 @@
-if !exists('g:loaded_bufferline')
-  finish
-endif
-
-if !exists('g:lightline.tabline.left')
-  let g:lightline.tabline.left = []
-endif
-let g:lightline.tabline.left += [['bufferline']]
-let g:lightline.component_expand.bufferline = 'LightLineBufferline'
-let g:lightline.component_type.bufferline = 'tabsel'
-
-function! LightLineBufferline()
-  call bufferline#refresh_status()
-  let l:buffers = [
-  \ g:bufferline_status_info.before,
-  \ g:bufferline_status_info.current,
-  \ g:bufferline_status_info.after
-  \ ]
-
-  function! s:fmt(key, val)
-    let limit = 25
-    if strlen(a:val) > limit
-      return trim(a:val)[:limit] . '..'
-    endif
-    return trim(a:val)
-  endfunction
-
-  call map(l:buffers, function('s:fmt'))
-  return l:buffers
-endfunction
diff --git a/.vim/after/plugin/line_obsession.vim b/.vim/after/plugin/line_obsession.vim
deleted file mode 100644
index c4f774f..0000000
--- a/.vim/after/plugin/line_obsession.vim
+++ /dev/null
@@ -1,10 +0,0 @@
-if !exists('g:loaded_obsession')
-  finish
-endif
-
-let g:lightline.component_function.obsession = 'LightLineSession'
-
-function! LightLineSession()
-  let l:indicator = ObsessionStatus('active', 'paused')
-  return l:indicator ? '[obs '.l:indicator.']' : ''
-endfunction
diff --git a/.vim/after/plugin/neomake.vim b/.vim/after/plugin/neomake.vim
deleted file mode 100644
index 1e30a72..0000000
--- a/.vim/after/plugin/neomake.vim
+++ /dev/null
@@ -1,85 +0,0 @@
-finish
-if !exists('g:loaded_neomake')
-  finish
-endif
-
-" Neomake
-cnoreabbrev neom Neomake
-cnoreabbrev nm Neomake
-call neomake#configure#automake('w')
-
-" \ 'BufWritePost': {'delay': 0},
-let g:neomake_error_sign = {'text': '✘', 'texthl': 'NeomakeErrorSign'}
-let g:neomake_warning_sign = {'text': '‼', 'texthl': 'NeomakeWarningSign'}
-let g:neomake_message_sign = {'text': '☛', 'texthl': 'NeomakeMessageSign'}
-let g:neomake_info_sign = {'text': 'i', 'texthl': 'NeomakeInfoSign'}
-
-" make diagnosis-nvim match
-call sign_define("LspDiagnosticsErrorSign", {"text" : copy(g:neomake_error_sign.text), "texthl" : copy(g:neomake_error_sign.texthl)})
-call sign_define("LspDiagnosticsWarningSign", {"text" : copy(g:neomake_warning_sign.text), "texthl" : copy(g:neomake_warning_sign.texthl)})
-call sign_define("LspDiagnosticsHintSign", {"text" : copy(g:neomake_message_sign.text), "texthl" : copy(g:neomake_message_sign.texthl)})
-call sign_define("LspDiagnosticsInformationSign", {"text" : copy(g:neomake_info_sign.text), "texthl" : copy(g:neomake_info_sign.texthl)})
-
-" let g:neomake_serialize = 1
-
-let g:neomake_highlight_columns = 1
-let g:neomake_highlight_lines = 1
-let g:neomake_open_list = 0
-
-" function! OnNeomakeJobFinished()
-"   let l:ctx = g:neomake_hook_context
-"   if l:ctx.jobinfo.exit_code != 0
-"     echoerr l:ctx.jobinfo.maker.name . ' failed'
-"   endif
-" endfunction
-augroup neomake_hooks
-  au!
-  " au User NeomakeJobFinished call OnNeomakeJobFinished()
-  au BufWritePost * Neomake
-augroup END
-
-" generic makers
-let g:neomake_makeclean_maker = { 'exe': 'make', 'args': ['clean'], 'errorformat': '%f:%l:%c: %m' }
-let g:neomake_make_maker = { 'exe': 'make', 'errorformat': '%f:%l:%c: %m' }
-
-nmap <leader>nm :Neomake<space>
-
-if exists('g:loaded_lightline')
-    if exists('g:lightline')
-        let g:lightline.component_function.neomake = 'LightLineNeomake'
-    else
-        let g:lightline = {'component_function': {'neomake': 'LightLineNeomake'}}
-    endif
-    function! LightLineNeomake()
-    let l:msg = neomake#statusline#get(bufnr('%'), {
-        \ 'format_status_disabled': '{{disabled_info}} %s',
-        \ 'format_status_enabled': '%s',
-        \ 'format_running': '… {{running_job_names}}',
-        \ 'format_loclist_ok': ' ✔',
-        \ 'format_loclist_issues': '%s',
-        \ 'format_loclist_unknown': '',
-        \ 'format_loclist_type_E': ' ✘ {{count}}',
-        \ 'format_loclist_type_W': ' ‼ {{count}}',
-        \ 'format_loclist_type_I': ' i {{count}}',
-        \ 'format_quickfix_type_E': '✘ {{count}}',
-        \ 'format_quickfix_type_W': '‼ {{count}}',
-        \ 'format_quickfix_type_I': 'i {{count}}',
-    \ })
-    return l:msg ? 'nm:'.l:msg : ''
-    endfunction
-endif
-
-" hightlights {{{
-hi SpellBad ctermfg=red guifg=red
-hi SpellCap ctermfg=yellow guifg=yellow
-
-hi link NeomakeErrorSign NeomakeError
-hi link NeomakeWarningSign NeomakeWarning
-hi link NeomakeMessageSign NeomakeMessage
-hi link NeomakeInfoSign NeomakeInfo
-
-hi link NeomakeVirtualtextError NeomakeError
-hi link NeomakeVirtualtextWarning NeomakeWarning
-hi link NeomakeVirtualtextMessage NeomakeMessage
-hi link NeomakeVirtualtextInfo NeomakeInfo
-" }}}
diff --git a/.vim/after/plugin/writing.vim b/.vim/after/plugin/writing.vim
deleted file mode 100644
index f84cc48..0000000
--- a/.vim/after/plugin/writing.vim
+++ /dev/null
@@ -1,92 +0,0 @@
-" Configuration for writing text in vim
-
-" Grammer checker
-let g:grammarous#languagetool_cmd = 'languagetool'
-
-" Minimal UX for concentration
-let g:goyo_width = 120
-let g:goyo_height = 90
-let g:goyo_linenr = 0
-nmap <F0> :Goyo<CR>
-
-let g:limelight_conceal_ctermfg = 'gray'
-let g:limelight_conceal_ctermbg = 'none'
-let g:limelight_conceal_guifg = 'gray'
-let g:limelight_conceal_guibg = 'none'
-
-let g:limelight_default_coefficient = 0.5
-let g:limelight_paragraph_span = 1
-let g:limelight_priority = -1
-
-" goyo enter/leave funcs {{{
-function! s:goyo_enter()
-    if has('gui_running') || has('gui_vimr')
-        " set linespace = 7
-    end
-    if executable('tmux') && strlen($TMUX)
-        silent !tmux set status off
-        silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z
-    endif
-
-    " set noshowmode
-    " set noshowcmd
-    set scrolloff=999
-    Limelight
-
-    " make sure :q in the last buffer, in Goyo also quits vim
-    " let b:quitting = 0
-    " let b:quitting_bang = 0
-    " autocmd QuitPre <buffer> let b:quitting = 1
-    " cabbrev <buffer> q! let b:quitting_bang = 1 <bar> q!
-endfunction
-
-function! s:goyo_leave()
-    if has('gui_running') || has('gui_vimr')
-        " set linespace = 0
-    endif
-    if executable('tmux') && strlen($TMUX)
-        silent !tmux set status on
-        silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z
-    endif
-
-    " set showmode
-    " set showcmd
-    set scrolloff=5
-    Limelight!
-
-    " make sure :q in the last buffer, in Goyo also quits vim
-    " if b:quitting && len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) == 1
-    "     if b:quitting_bang
-    "       qa!
-    "     else
-    "       qa
-    "     endif
-    " endif
-
-    hi SignColumn guibg=none ctermbg=none
-endfunction
-" }}}
-
-" writing autocommands
-function! s:writing_mode_enter()
-    set textwidth=120
-    " ALEToggle
-    " Grammarous keymaps
-    if exists('g:loaded_grammarous')
-        nmap <leader>l :GrammarousCheck --lang=de
-        nmap <leader>gi <Plug>(grammarous-move-to-info-window)
-        nmap <leader>gr <Plug>(grammarous-remove-error)
-        nmap <leader>gd <Plug>(grammarous-disable-rule)
-        nmap <leader>gf <Plug>(grammarous-fixit)
-        nmap <leader>gn <Plug>(grammarous-move-to-next-error)
-        nmap <leader>gp <Plug>(grammarous-move-to-previous-error)
-    endif
-endfunction
-
-augroup Writing
-    au!
-    au FileType markdown,tex call <SID>writing_mode_enter()
-    " goyo autocommands
-    au User GoyoEnter nested call <SID>goyo_enter()
-    au User GoyoLeave nested call <SID>goyo_leave()
-augroup END