From eec48ff71881d8757b79dcd95aac9dac4d71bf72 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 12 May 2024 21:01:00 +0200 Subject: tidied this repo up and uploaded my new nvim from scratch config --- plugin/lsp.nvim | 1 - plugin/max-find-shell.vim | 11 -------- plugin/max-fix-colorschemes.vim | 62 ----------------------------------------- plugin/max-set-window-title.vim | 22 --------------- plugin/netrw.vim | 16 ----------- plugin/vimdiff.vim | 4 --- plugin/youcompleteme.vim | 21 -------------- 7 files changed, 137 deletions(-) delete mode 100644 plugin/lsp.nvim delete mode 100644 plugin/max-find-shell.vim delete mode 100644 plugin/max-fix-colorschemes.vim delete mode 100644 plugin/max-set-window-title.vim delete mode 100644 plugin/netrw.vim delete mode 100644 plugin/vimdiff.vim delete mode 100644 plugin/youcompleteme.vim (limited to 'plugin') diff --git a/plugin/lsp.nvim b/plugin/lsp.nvim deleted file mode 100644 index 979b35f..0000000 --- a/plugin/lsp.nvim +++ /dev/null @@ -1 +0,0 @@ -command! LspFix lua vim.lsp.buf.code_action() diff --git a/plugin/max-find-shell.vim b/plugin/max-find-shell.vim deleted file mode 100644 index 778f0fb..0000000 --- a/plugin/max-find-shell.vim +++ /dev/null @@ -1,11 +0,0 @@ -"======================================================================================================================= -" SHELL: -" Many scripts rely on bash. We help to find the bash binary -"======================================================================================================================= -if filereadable("/bin/bash") - set shell=/bin/bash -elseif filereadable("/usr/local/bin/bash") - set shell=/usr/local/bin/bash -elseif has("win32") - set shell="cmd.exe" -endif diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim deleted file mode 100644 index 9d0c034..0000000 --- a/plugin/max-fix-colorschemes.vim +++ /dev/null @@ -1,62 +0,0 @@ -"======================================================================================================================= -" COLOR SCHEME: -"======================================================================================================================= -function! ExtendColorTheme() - highlight! Bold cterm=bold gui=bold - highlight! Italic cterm=italic gui=italic - highlight! Underline cterm=underline gui=underline - highlight! BoldUnderline cterm=bold,underline gui=bold,underline - highlight! BoldItalic cterm=bold,Italic gui=bold,italic - highlight! Todo cterm=bold gui=bold guibg=#ffffaa guifg=#000000 - highlight! Error cterm=NONE ctermbg=NONE gui=NONE guibg=NONE - highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red - highlight! Ignore cterm=NONE ctermbg=NONE ctermfg=NONE gui=NONE guibg=NONE guifg=NONE - highlight! LineNr cterm=italic gui=italic - highlight! PmenuThumb cterm=inverse - highlight! MoreMsg cterm=inverse - - highlight! link qfSeparator Normal | " reserve one space - highlight! link qfLineNr Normal | " informational line numbers should look different - highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing - highlight! link WildMenu Search - highlight! link Convention Error - highlight! link PmenuSbar Pmenu - highlight! link VertSplit LineNr - highlight! link SignColumn LineNr - highlight! link ALEErrorSign LineNr - highlight! link FoldColumn VertSplit - highlight! link Folded LineNr - highlight! link EndOfBuffer NonText - highlight! link DiagnosticHint Debug - highlight! link DiagnosticInfo Debug - highlight! link DiagnosticError Error - highlight! link DiagnosticWarn Debug - - - hi Comment gui=italic - hi Keyword gui=bold - - autocmd BufReadPost * syntax match Convention /\s*$/ -endfunction -autocmd ColorScheme * call ExtendColorTheme() - -if &term == "linux" - set notermguicolors -else - set termguicolors -endif - - -let g:PaperColor_Theme_Options = { - \ 'theme': { - \ 'default.dark': { - \ 'transparent_background': 1 - \ }, - \ 'default.light': { - \ 'transparent_background': 1 - \ } - \ } - \ } - -set background=dark -colorscheme PaperColor diff --git a/plugin/max-set-window-title.vim b/plugin/max-set-window-title.vim deleted file mode 100644 index 1838f03..0000000 --- a/plugin/max-set-window-title.vim +++ /dev/null @@ -1,22 +0,0 @@ - - -augroup SET_WINDOW_TITLE - set title - set titlelen=40 - - " set window title for screen(3) - " if &term == "screen" || &term == "xterm" - if &term == "screen" - set t_ts=k - set t_fs=\ - endif - - " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" - " autocmd CursorHold * let &titlestring = "%t %y ".$USER."@".hostname().":%{expand("%:~:.:h")}" - set titlestring=\ %F - " Fix terminal title ================================================================================================= - " autocmd VimEnter * let &t_EI .= "\[0 q" - " autocmd VimEnter * let &t_SI = "\]12;green\x7" - autocmd VimLeave * silent !echo -ne "\033]112\007" -augroup END - diff --git a/plugin/netrw.vim b/plugin/netrw.vim deleted file mode 100644 index 57d6d50..0000000 --- a/plugin/netrw.vim +++ /dev/null @@ -1,16 +0,0 @@ -augroup NETRW - " Deprecated with this configuration, but still useful when deactivating some Plugins - " NETRW: obsolete with NERDTree - let g:netrw_alto = 0 | " open files on the right - let g:netrw_altv = 1 | " open files on the right - let g:netrw_banner = 0 | " display help messages? - let g:netrw_browse_split = 4 | " 4=open in previous window - let g:netrw_fastbrowse = 2 | " manually refresh direcory list (avoids display errors) - let g:netrw_hide = 1 | " show not-hidden files only - let g:netrw_keepdir = 1 | " because that works better, when gf finds a path name - let g:netrw_list_hide = '^\..*' | " Explore mode: hide files starting with dot - let g:netrw_liststyle = 3 | " 3=tree - let g:netrw_preview = 0 | " - let g:netrw_winsize = 20 | " window size in percent - " let s:treedepthstring = "│ " | " this is not going to work, but left here for documentation -augroup END diff --git a/plugin/vimdiff.vim b/plugin/vimdiff.vim deleted file mode 100644 index ffd9f46..0000000 --- a/plugin/vimdiff.vim +++ /dev/null @@ -1,4 +0,0 @@ -if &diff " only for diff mode/vimdiff - set diffopt=filler,context:1000000 " filler is default and inserts empty lines for sync - set foldmethod=syntax -endif diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim deleted file mode 100644 index a241dae..0000000 --- a/plugin/youcompleteme.vim +++ /dev/null @@ -1,21 +0,0 @@ -augroup YOUCOMPLETEME - let g:ycm_error_symbol = '✖' " insert this as an error symbol in the gutter bar/sign column - let g:ycm_warning_symbol = '➔' " insert this as a warning symbol in the gutter bar/sign coloumn - - let g:ycm_autoclose_preview_window_after_insertion = 0 - let g:ycm_auto_trigger = 1 - let g:ycm_collect_identifiers_from_tags_files = 0 " Let YCM read tags from Ctags file - let g:ycm_confirm_extra_conf = 0 " security is overrated ;) - let g:ycm_always_populate_location_list = 0 " we can manually run :YcmDiags to do that - - let g:ycm_key_list_previous_completion = ['Up'] - let g:ycm_key_list_select_completion = ['Down'] - - "" let g:ycm_semantic_triggers = - "" \ { - "" \ 'c': [ 're!\w{2}' ] - "" \ } " per language configurations - " packadd YouCompleteMe -augroup END - - -- cgit v1.2.3