diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:33:50 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:33:50 +0100 |
commit | 06c386f6d7e737fe22927190be6057c2e09240df (patch) | |
tree | 9fc395514387bbf9bf51f45661c798bbda3935a5 /.config/nvim/plug-config | |
parent | 855f4e4f0f22b35641f13614e46b9ab7f6818188 (diff) |
Delete old vim scripts
Diffstat (limited to '.config/nvim/plug-config')
23 files changed, 0 insertions, 387 deletions
diff --git a/.config/nvim/plug-config/barbar.vim b/.config/nvim/plug-config/barbar.vim deleted file mode 100644 index 16c574a..0000000 --- a/.config/nvim/plug-config/barbar.vim +++ /dev/null @@ -1,56 +0,0 @@ -let bufferline = get(g:, 'bufferline', {}) -"let g:bufferline = { 'closable': v:false } -" Show a shadow over the editor in buffer-pick mode -let bufferline.shadow = v:true - -" Enable/disable icons -let bufferline.icons = v:true - -" Enables/disable clickable tabs -" - left-click: go to buffer -" - middle-click: delete buffer -" -" NOTE disabled by default because this might cause E541 (too many items) -" if you have many tabs open -let bufferline.clickable = v:true - -" If set, the letters for each buffer in buffer-pick mode will be -" assigned based on their name. Otherwise or in case all letters are -" already assigned, the behavior is to assign letters in order of -" usability (see order below) -let bufferline.semantic_letters = v:true - -" New buffer letters are assigned in this order. This order is -" optimal for the qwerty keyboard layout but might need adjustement -" for other layouts. -let bufferline.letters = -\ 'asdfjkl;ghnmxcbziowerutyqpASDFJKLGHNMXCBZIOWERUTYQP' - -let bg_current = get(nvim_get_hl_by_name('Normal', 1), 'background', '#000000') -let bg_visible = get(nvim_get_hl_by_name('TabLineSel', 1), 'background', '#000000') -let bg_inactive = get(nvim_get_hl_by_name('TabLine', 1), 'background', '#000000') - -" For the current active buffer -hi default link BufferCurrent Normal -" For the current active buffer when modified -hi default link BufferCurrentMod Normal -" For the current active buffer icon -hi default link BufferCurrentSign Normal -" For the current active buffer target when buffer-picking -exe 'hi default BufferCurrentTarget guifg=red gui=bold guibg=' . bg_current - -" For buffers visible but not the current one -hi default link BufferVisible TabLineSel -hi default link BufferVisibleMod TabLineSel -hi default link BufferVisibleSign TabLineSel -exe 'hi default BufferVisibleTarget guifg=red gui=bold guibg=' . bg_visible - -" For buffers invisible buffers -hi default link BufferInactive TabLine -hi default link BufferInactiveMod TabLine -hi default link BufferInactiveSign TabLine -exe 'hi default BufferInactiveTarget guifg=red gui=bold guibg=' . bg_inactive - - -" For the shadow in buffer-picking mode -hi default BufferShadow guifg=#000000 guibg=#000000 diff --git a/.config/nvim/plug-config/far.vim b/.config/nvim/plug-config/far.vim deleted file mode 100644 index cab863b..0000000 --- a/.config/nvim/plug-config/far.vim +++ /dev/null @@ -1,9 +0,0 @@ -let g:far#source='rgnvim' - -set lazyredraw " improve scrolling performance when navigating through large results - -let g:far#window_width=50 -" Use %:p with buffer option only -let g:far#file_mask_favorites=['%:p', '**/*.*', '**/*.js', '**/*.py', '**/*.java', '**/*.css', '**/*.html', '**/*.vim', '**/*.cpp', '**/*.c', '**/*.h', ] -let g:far#window_min_content_width=30 -let g:far#enable_undo=1 diff --git a/.config/nvim/plug-config/floaterm.vim b/.config/nvim/plug-config/floaterm.vim deleted file mode 100644 index 18e38a9..0000000 --- a/.config/nvim/plug-config/floaterm.vim +++ /dev/null @@ -1,13 +0,0 @@ -let g:floaterm_keymap_toggle = '<F1>' -let g:floaterm_keymap_next = '<F2>' -let g:floaterm_keymap_prev = '<F3>' -let g:floaterm_keymap_new = '<F4>' -let g:floaterm_title='' - -" Floaterm -let g:floaterm_gitcommit='floaterm' -let g:floaterm_autoinsert=1 -let g:floaterm_width=0.8 -let g:floaterm_height=0.8 -let g:floaterm_wintitle=0 -let g:floaterm_autoclose=1 diff --git a/.config/nvim/plug-config/fzf.vim b/.config/nvim/plug-config/fzf.vim deleted file mode 100644 index fbb5457..0000000 --- a/.config/nvim/plug-config/fzf.vim +++ /dev/null @@ -1,78 +0,0 @@ -" This is the default extra key bindings -let g:fzf_action = { - \ 'ctrl-t': 'tab split', - \ 'ctrl-x': 'split', - \ 'ctrl-v': 'vsplit' } - -" Enable per-command history. -" CTRL-N and CTRL-P will be automatically bound to next-history and -" previous-history instead of down and up. If you don't like the change, -" explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS. -let g:fzf_history_dir = '~/.local/share/fzf-history' -let g:fzf_buffers_jump = 1 - -" map <C-f> :Files<CR> -" map <leader>b :Buffers<CR> -" nnoremap <leader>g :Rg<CR> -" nnoremap <leader>t :Tags<CR> -" nnoremap <leader>m :Marks<CR> - - -let g:fzf_tags_command = 'ctags -R' -" Border color -let g:fzf_layout = {'up':'~90%', 'window': { 'width': 0.8, 'height': 0.8,'yoffset':0.5,'xoffset': 0.5, 'highlight': 'Todo', 'border': 'sharp' } } - -let $FZF_DEFAULT_OPTS = '--layout=reverse --inline-info' -let $FZF_DEFAULT_COMMAND="rg --files --hidden --glob '!.git/**'" -"-g '!{node_modules,.git}' - -" Customize fzf colors to match your color scheme -let g:fzf_colors = -\ { 'fg': ['fg', 'Normal'], - \ 'bg': ['bg', 'Normal'], - \ 'hl': ['fg', 'Comment'], - \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], - \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], - \ 'hl+': ['fg', 'Statement'], - \ 'info': ['fg', 'PreProc'], - \ 'border': ['fg', 'Ignore'], - \ 'prompt': ['fg', 'Conditional'], - \ 'pointer': ['fg', 'Exception'], - \ 'marker': ['fg', 'Keyword'], - \ 'spinner': ['fg', 'Label'], - \ 'header': ['fg', 'Comment'] } - -"Get Files -command! -bang -nargs=? -complete=dir Files - \ call fzf#vim#files(<q-args>, fzf#vim#with_preview({'options': ['--layout=reverse', '--inline-info']}), <bang>0) - - -" Get text in files with Rg -" command! -bang -nargs=* Rg -" \ call fzf#vim#grep( -" \ "rg --column --line-number --no-heading --color=always --smart-case --glob '!.git/**' ".shellescape(<q-args>), 1, - - " Make Ripgrep ONLY search file contents and not filenames -command! -bang -nargs=* Rg - \ call fzf#vim#grep( - \ 'rg --column --line-number --hidden --smart-case --no-heading --color=always '.shellescape(<q-args>), 1, - \ <bang>0 ? fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'up:60%') - \ : fzf#vim#with_preview({'options': '--delimiter : --nth 4.. -e'}, 'right:50%', '?'), - \ <bang>0) - -" Ripgrep advanced -function! RipgrepFzf(query, fullscreen) - let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case %s || true' - let initial_command = printf(command_fmt, shellescape(a:query)) - let reload_command = printf(command_fmt, '{q}') - let spec = {'options': ['--phony', '--query', a:query, '--bind', 'change:reload:'.reload_command]} - call fzf#vim#grep(initial_command, 1, fzf#vim#with_preview(spec), a:fullscreen) -endfunction - -command! -nargs=* -bang RG call RipgrepFzf(<q-args>, <bang>0) - -" Git grep -command! -bang -nargs=* GGrep - \ call fzf#vim#grep( - \ 'git grep --line-number '.shellescape(<q-args>), 0, - \ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), <bang>0) diff --git a/.config/nvim/plug-config/goyo.vim b/.config/nvim/plug-config/goyo.vim deleted file mode 100644 index cb894f7..0000000 --- a/.config/nvim/plug-config/goyo.vim +++ /dev/null @@ -1,2 +0,0 @@ -autocmd! User GoyoEnter lua require('galaxyline').disable_galaxyline() -autocmd! User GoyoLeave lua require('galaxyline').galaxyline_augroup() diff --git a/.config/nvim/plug-config/highlightedyank.vim b/.config/nvim/plug-config/highlightedyank.vim deleted file mode 100644 index 9a4a4b0..0000000 --- a/.config/nvim/plug-config/highlightedyank.vim +++ /dev/null @@ -1 +0,0 @@ -let g:highlightedyank_highlight_duration = 500 diff --git a/.config/nvim/plug-config/lsp-config.vim b/.config/nvim/plug-config/lsp-config.vim deleted file mode 100644 index f9150a2..0000000 --- a/.config/nvim/plug-config/lsp-config.vim +++ /dev/null @@ -1,19 +0,0 @@ -" LSP config (the mappings used in the default file don't quite work right) -nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR> -nnoremap <silent> gD <cmd>lua vim.lsp.buf.declaration()<CR> -nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR> -nnoremap <silent> gi <cmd>lua vim.lsp.buf.implementation()<CR> -nnoremap <silent> ca :Lspsaga code_action<CR> -" nnoremap <silent> K <cmd>lua vim.lsp.buf.hover()<CR> -nnoremap <silent> K :Lspsaga hover_doc<CR> -nnoremap <silent> <C-k> <cmd>lua vim.lsp.buf.signature_help()<CR> -" nnoremap <silent> <C-p> <cmd>lua vim.lsp.diagnostic.goto_prev()<CR> -" nnoremap <silent> <C-n> <cmd>lua vim.lsp.diagnostic.goto_next()<CR> -nnoremap <silent> <C-p> :Lspsaga diagnostic_jump_prev<CR> -nnoremap <silent> <C-n> :Lspsaga diagnostic_jump_next<CR> - -" autoformat -autocmd BufWritePre *.js lua vim.lsp.buf.formatting_sync(nil, 100) -autocmd BufWritePre *.jsx lua vim.lsp.buf.formatting_sync(nil, 100) -autocmd BufWritePre *.lua lua vim.lsp.buf.formatting_sync(nil, 100) -" autocmd BufWritePre *.py lua vim.lsp.buf.formatting_sync(nil, 100) diff --git a/.config/nvim/plug-config/lsp-saga.vim b/.config/nvim/plug-config/lsp-saga.vim deleted file mode 100644 index 428e5a1..0000000 --- a/.config/nvim/plug-config/lsp-saga.vim +++ /dev/null @@ -1,7 +0,0 @@ - nnoremap <silent> K <cmd>lua require('lspsaga.hover').render_hover_doc()<CR> - " -- scroll down hover doc or scroll in definition preview - nnoremap <silent> <C-f> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<CR> - " -- scroll up hover doc - nnoremap <silent> <C-b> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)<CR> - " signature - nnoremap <silent> gs <cmd>lua require('lspsaga.signaturehelp').signature_help()<CR> diff --git a/.config/nvim/plug-config/nvimtree.vim b/.config/nvim/plug-config/nvimtree.vim deleted file mode 100644 index 24b2721..0000000 --- a/.config/nvim/plug-config/nvimtree.vim +++ /dev/null @@ -1,51 +0,0 @@ -let g:nvim_tree_side = 'left' " | 'left' "left by default -let g:nvim_tree_width = 40 "30 by default -let g:nvim_tree_ignore = [ '.git', 'node_modules', '.cache' ] "empty by default -let g:nvim_tree_auto_open = 0 "0 by default, opens the tree when typing `vim $DIR` or `vim` -let g:nvim_tree_auto_close = 1 "0 by default, closes the tree when it's the last window -" let g:nvim_tree_auto_ignore_ft = 'startify' "empty by default, don't auto open tree on specific filetypes. -let g:nvim_tree_quit_on_open = 0 "0 by default, closes the tree when you open a file -let g:nvim_tree_follow = 1 "0 by default, this option allows the cursor to be updated when entering a buffer -let g:nvim_tree_indent_markers = 1 "0 by default, this option shows indent markers when folders are open -let g:nvim_tree_hide_dotfiles = 1 "0 by default, this option hides files and folders starting with a dot `.` -let g:nvim_tree_git_hl = 1 "0 by default, will enable file highlight for git attributes (can be used without the icons). -" let g:nvim_tree_root_folder_modifier = ':~' "This is the default. See :help filename-modifiers for more options -" let g:nvim_tree_tab_open = 1 "0 by default, will open the tree when entering a new tab and the tree was previously open -" let g:nvim_tree_width_allow_resize = 1 "0 by default, will not resize the tree when opening a file -let g:nvim_tree_disable_netrw = 0 "1 by default, disables netrw -let g:nvim_tree_hijack_netrw = 0 "1 by default, prevents netrw from automatically opening when opening directories (but lets you keep its other utilities) -let g:nvim_tree_show_icons = { - \ 'git': 1, - \ 'folders': 1, - \ 'files': 1, - \ } -"If 0, do not show the icons for one of 'git' 'folder' and 'files' -"1 by default, notice that if 'files' is 1, it will only display -"if nvim-web-devicons is installed and on your runtimepath - -" default will show icon by default if no icon is provided -" default shows no icon by default -let g:nvim_tree_icons = { - \ 'default': '', - \ 'symlink': '', - \ 'git': { - \ 'unstaged': "✗", - \ 'staged': "✓", - \ 'unmerged': "", - \ 'renamed': "➜", - \ 'untracked': "ﭖ" - \ }, - \ 'folder': { - \ 'default': "", - \ 'open': "", - \ 'empty': "", - \ 'empty_open': "", - \ 'symlink': "", - \ } - \ } - -nnoremap <leader>e :NvimTreeToggle<CR> -nnoremap <leader>r :NvimTreeRefresh<CR> -nnoremap <leader>n :NvimTreeFindFile<CR> -" NvimTreeOpen and NvimTreeClose are also available if you need them -highlight NvimTreeFolderIcon guibg=blue diff --git a/.config/nvim/plug-config/poet-v.vim b/.config/nvim/plug-config/poet-v.vim deleted file mode 100644 index 8935b45..0000000 --- a/.config/nvim/plug-config/poet-v.vim +++ /dev/null @@ -1,2 +0,0 @@ -let g:poetv_executables = ['poetry', 'pyenv'] -let g:poetv_auto_activate = 1 diff --git a/.config/nvim/plug-config/polyglot.vim b/.config/nvim/plug-config/polyglot.vim deleted file mode 100644 index 8c82247..0000000 --- a/.config/nvim/plug-config/polyglot.vim +++ /dev/null @@ -1,7 +0,0 @@ -let g:polyglot_disabled = ['csv'] - -let g:python_highlight_all=1 - -let g:vim_jsx_pretty_colorful_config = 1 - -set re=0 diff --git a/.config/nvim/plug-config/quickscope.vim b/.config/nvim/plug-config/quickscope.vim deleted file mode 100644 index 7950dc7..0000000 --- a/.config/nvim/plug-config/quickscope.vim +++ /dev/null @@ -1,6 +0,0 @@ -" Trigger a highlight in the appropriate direction when pressing these keys: -let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] - -highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline -highlight QuickScopeSecondary guifg='#eF5F70' gui=underline ctermfg=81 cterm=underline -let g:qs_max_chars=150 diff --git a/.config/nvim/plug-config/rnvimr.vim b/.config/nvim/plug-config/rnvimr.vim deleted file mode 100644 index 4264b03..0000000 --- a/.config/nvim/plug-config/rnvimr.vim +++ /dev/null @@ -1,14 +0,0 @@ -" Make Ranger replace netrw and be the file explorer - -let g:rnvimr_draw_border = 1 - -" Make Ranger to be hidden after picking a file -let g:rnvimr_pick_enable = 1 - -" Make Neovim to wipe the buffers corresponding to the files deleted by Ranger -let g:rnvimr_bw_enable = 1 - -let g:rnvimr_ranger_cmd = 'ranger --cmd="set column_ratios 1,1"' - -let g:rnvimr_presets = [ - \ {'width': 0.800, 'height': 0.800}] diff --git a/.config/nvim/plug-config/rust.vim b/.config/nvim/plug-config/rust.vim deleted file mode 100644 index 3b7519d..0000000 --- a/.config/nvim/plug-config/rust.vim +++ /dev/null @@ -1,5 +0,0 @@ -if has('macunix') - let g:rust_clip_command = 'pbcopy' -else - let g:rust_clip_command = 'xclip -selection clipboard' -endif diff --git a/.config/nvim/plug-config/signify.vim b/.config/nvim/plug-config/signify.vim deleted file mode 100644 index ad38e20..0000000 --- a/.config/nvim/plug-config/signify.vim +++ /dev/null @@ -1,16 +0,0 @@ -" Change these if you want -let g:signify_sign_add = '+' -let g:signify_sign_delete = '_' -let g:signify_sign_delete_first_line = '‾' -let g:signify_sign_change = '~' - -" I find the numbers disctracting -let g:signify_sign_show_count = 0 -let g:signify_sign_show_text = 1 - - -" Jump though hunks -nmap <leader>gj <plug>(signify-next-hunk) -nmap <leader>gk <plug>(signify-prev-hunk) -nmap <leader>gJ 9999<leader>gJ -nmap <leader>gK 9999<leader>gk diff --git a/.config/nvim/plug-config/sneak.vim b/.config/nvim/plug-config/sneak.vim deleted file mode 100644 index 2641dc9..0000000 --- a/.config/nvim/plug-config/sneak.vim +++ /dev/null @@ -1,25 +0,0 @@ -let g:sneak#label = 1 - -" case insensitive sneak -let g:sneak#use_ic_scs = 1 - -" immediately move to the next instance of search, if you move the cursor sneak is back to default behavior -let g:sneak#s_next = 1 - -" remap so I can use , and ; with f and t -map gS <Plug>Sneak_, -map gs <Plug>Sneak_; - -" Change the colors -highlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan -highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow - -" Cool prompts -" let g:sneak#prompt = '🕵️' -let g:sneak#prompt = '🔎 ' - -" I like quickscope better for this since it keeps me in the scope of a single line -" map f <Plug>Sneak_f -" map F <Plug>Sneak_F -" map t <Plug>Sneak_t -" map T <Plug>Sneak_T diff --git a/.config/nvim/plug-config/start-screen.vim b/.config/nvim/plug-config/start-screen.vim deleted file mode 100644 index de0b0d2..0000000 --- a/.config/nvim/plug-config/start-screen.vim +++ /dev/null @@ -1,51 +0,0 @@ -let g:startify_custom_header = [ -\ ' ##############..... ############## ', -\ ' ##############......############## ', -\ ' ##########..........########## ', -\ ' ##########........########## ', -\ ' ##########.......########## ', -\ ' ##########.....##########.. ', -\ ' ##########....##########..... ', -\ ' ..##########..##########......... ', -\ ' ....##########.#########............. ', -\ ' ..################JJJ............ ', -\ ' ################............. ', -\ ' ##############.JJJ.JJJJJJJJJJ ', -\ ' ############...JJ...JJ..JJ JJ ', -\ ' ##########....JJ...JJ..JJ JJ ', -\ ' ########......JJJ..JJJ JJJ JJJ ', -\ ' ###### ......... ', -\ ' ..... ', -\ ' . ', - \] - -let g:startify_session_dir = '~/.config/nvim/session' - - -let g:startify_lists = [ - \ { 'type': 'files', 'header': [' Files'] }, - \ { 'type': 'dir', 'header': [' Current Directory '. getcwd()] }, - \ { 'type': 'sessions', 'header': [' Sessions'] }, - \ { 'type': 'bookmarks', 'header': [' Bookmarks'] }, - \ ] - - -let g:startify_session_autoload = 1 -let g:startify_session_delete_buffers = 1 -let g:startify_change_to_vcs_root = 1 -let g:startify_fortune_use_unicode = 1 -let g:startify_session_persistence = 1 - -let g:webdevicons_enable_startify = 1 - -"function! StartifyEntryFormat() -" return 'WebDevIconsGetFileTypeSymbol(absolute_path) ." ". entry_path' -" endfunction - -let g:startify_bookmarks = [ - \ { 'c': '~/.config/i3/config' }, - \ { 'i': '~/.config/nvim/init.vim' }, - \ ] - -let g:startify_enable_special = 0 - diff --git a/.config/nvim/plug-config/vim-bbye.vim b/.config/nvim/plug-config/vim-bbye.vim deleted file mode 100644 index 10ee440..0000000 --- a/.config/nvim/plug-config/vim-bbye.vim +++ /dev/null @@ -1 +0,0 @@ -nnoremap <Leader>q :Bdelete<CR> diff --git a/.config/nvim/plug-config/vim-commentary.vim b/.config/nvim/plug-config/vim-commentary.vim deleted file mode 100644 index b6758b3..0000000 --- a/.config/nvim/plug-config/vim-commentary.vim +++ /dev/null @@ -1,8 +0,0 @@ -function! Comment() - if (mode() == "n" ) - execute "Commentary" - else - execute "'<,'>Commentary" - endif - endfunction -vnoremap <silent> <space>/ :call Comment() diff --git a/.config/nvim/plug-config/vim-pydocstring.vim b/.config/nvim/plug-config/vim-pydocstring.vim deleted file mode 100644 index e3d5311..0000000 --- a/.config/nvim/plug-config/vim-pydocstring.vim +++ /dev/null @@ -1 +0,0 @@ -let g:pydocstring_formatter = 'google' diff --git a/.config/nvim/plug-config/vim-rooter.vim b/.config/nvim/plug-config/vim-rooter.vim deleted file mode 100644 index 0fea077..0000000 --- a/.config/nvim/plug-config/vim-rooter.vim +++ /dev/null @@ -1 +0,0 @@ -let g:rooter_silent_chdir = 1 diff --git a/.config/nvim/plug-config/vimwiki.vim b/.config/nvim/plug-config/vimwiki.vim deleted file mode 100644 index 9718e0c..0000000 --- a/.config/nvim/plug-config/vimwiki.vim +++ /dev/null @@ -1,6 +0,0 @@ -set nocompatible -filetype plugin on -syntax on - -let g:vimwiki_list = [{'path': '~/vimwiki/', - \ 'syntax': 'markdown', 'ext': '.md'}] diff --git a/.config/nvim/plug-config/vista.vim b/.config/nvim/plug-config/vista.vim deleted file mode 100644 index 1940357..0000000 --- a/.config/nvim/plug-config/vista.vim +++ /dev/null @@ -1,8 +0,0 @@ -let g:vista_fzf_preview = ['right:50%'] - -let g:vista#renderer#enable_icon = 1 - -let g:vista#renderer#icons = { -\ "function": "\uf794", -\ "variable": "\uf71b", -\ } |