diff options
Diffstat (limited to 'plug-config')
41 files changed, 0 insertions, 892 deletions
diff --git a/plug-config/ale.vim b/plug-config/ale.vim deleted file mode 100644 index a134e79f..00000000 --- a/plug-config/ale.vim +++ /dev/null @@ -1 +0,0 @@ -let g:ale_disable_lsp = 1 diff --git a/plug-config/asynctask.vim b/plug-config/asynctask.vim deleted file mode 100644 index 81d12fdb..00000000 --- a/plug-config/asynctask.vim +++ /dev/null @@ -1,62 +0,0 @@ -let g:asyncrun_open = 6 -let g:asynctasks_term_pos = 'bottom' -" let g:asynctasks_term_pos = 'top' -" let g:asynctasks_term_pos = 'tab' -" let g:asynctasks_term_pos = 'external' -let g:asynctasks_extra_config = ['~/.config/nvim/utils/tasks.ini'] -" let current_tasks = asynctasks#list("") - -function! s:fzf_sink(what) - let p1 = stridx(a:what, '<') - if p1 >= 0 - let name = strpart(a:what, 0, p1) - let name = substitute(name, '^\s*\(.\{-}\)\s*$', '\1', '') - if name != '' - exec "AsyncTask ". fnameescape(name) - endif - endif -endfunction - -function! s:fzf_task() - let rows = asynctasks#source(&columns * 48 / 100) - let source = [] - for row in rows - let name = row[0] - let source += [name . ' ' . row[1] . ' : ' . row[2]] - endfor - let opts = { 'source': source, 'sink': function('s:fzf_sink'), - \ 'options': '+m --nth 1 --inline-info --tac' } - if exists('g:fzf_layout') - for key in keys(g:fzf_layout) - let opts[key] = deepcopy(g:fzf_layout[key]) - endfor - endif - call fzf#run(opts) -endfunction - -command! -nargs=0 AsyncTaskFzf call s:fzf_task() - -" Available Variables -" $(VIM_FILEPATH) # File name of current buffer with full path. -" $(VIM_FILENAME) # File name of current buffer without path. -" $(VIM_FILEDIR) # Full path of current buffer without the file name. -" $(VIM_FILEEXT) # File extension of current buffer. -" $(VIM_FILETYPE) # File type (value of &ft in vim) -" $(VIM_FILENOEXT) # File name of current buffer without path and extension. -" $(VIM_PATHNOEXT) # Current file name with full path but without extension. -" $(VIM_CWD) # Current directory (which :pwd returns). -" $(VIM_RELDIR) # File path relativize to current directory. -" $(VIM_RELNAME) # File name relativize to current directory. -" $(VIM_ROOT) # Project root directory. -" $(VIM_CWORD) # Word under cursor. -" $(VIM_CFILE) # File name under cursor. -" $(VIM_CLINE) # Cursor line number in current buffer -" $(VIM_GUI) # has('gui_runnin')? -" $(VIM_VERSION) # Value of v:version. -" $(VIM_COLUMNS) # Current screen width. -" $(VIM_LINES) # Current screen height. -" $(VIM_SVRNAME) # Value of v:servername. -" $(VIM_PRONAME) # Name of current project root directory -" $(VIM_DIRNAME) # Name of current directory -" $(VIM_INIFILE) # Full path name of current ini (.tasks) file. -" $(VIM_INIHOME) # Where the ini file locates. diff --git a/plug-config/barbar.vim b/plug-config/barbar.vim deleted file mode 100644 index 73d1ce2f..00000000 --- a/plug-config/barbar.vim +++ /dev/null @@ -1,56 +0,0 @@ -let bufferline = {} - -" 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/plug-config/better-whitespace.vim b/plug-config/better-whitespace.vim deleted file mode 100644 index b12f34e1..00000000 --- a/plug-config/better-whitespace.vim +++ /dev/null @@ -1,2 +0,0 @@ -let g:better_whitespace_enabled=0 -" let g:strip_whitespace_on_save=1 diff --git a/plug-config/bracey.vim b/plug-config/bracey.vim deleted file mode 100644 index d7eda59b..00000000 --- a/plug-config/bracey.vim +++ /dev/null @@ -1,2 +0,0 @@ -"cd ~/.config/autoload/plugged/bracey.vim for plug -"run npm install --prefix server diff --git a/plug-config/closetags.vim b/plug-config/closetags.vim deleted file mode 100644 index e3e964bc..00000000 --- a/plug-config/closetags.vim +++ /dev/null @@ -1,4 +0,0 @@ -let g:closetag_filenames = '*.html,*.xhtml,*.phtml' -let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.js' -let g:closetag_filetypes = 'html,xhtml,phtml,javascript' - diff --git a/plug-config/codi.vim b/plug-config/codi.vim deleted file mode 100644 index 536b3415..00000000 --- a/plug-config/codi.vim +++ /dev/null @@ -1,7 +0,0 @@ -highlight CodiVirtualText guifg='#6495ed' - -let g:codi#virtual_text_prefix = "❯ " - -let g:codi#aliases = { - \ 'javascript.jsx': 'javascript', - \ } diff --git a/plug-config/dial.vim b/plug-config/dial.vim deleted file mode 100644 index 9500111d..00000000 --- a/plug-config/dial.vim +++ /dev/null @@ -1,18 +0,0 @@ -nmap <C-a> <Plug>(dial-increment) -nmap <C-x> <Plug>(dial-decrement) -vmap <C-a> <Plug>(dial-increment) -vmap <C-x> <Plug>(dial-decrement) -vmap g<C-a> <Plug>(dial-increment-additional) -vmap g<C-x> <Plug>(dial-decrement-additional) - -lua << EOF -local dial = require("dial") - -dial.config.searchlist.normal = { - "number#decimal", - "number#hex", - "number#binary", - "date#[%Y/%m/%d]", - "markup#markdown#header", -} -EOF diff --git a/plug-config/easymotion.vim b/plug-config/easymotion.vim deleted file mode 100644 index dc35ca2a..00000000 --- a/plug-config/easymotion.vim +++ /dev/null @@ -1,42 +0,0 @@ -" let g:EasyMotion_do_mapping = 0 " Disable default mappings -" " Turn on case-insensitive feature -let g:EasyMotion_smartcase = 1 -let g:EasyMotion_verbose = 0 -let g:EasyMotion_do_shade = 0 - -" " JK motions: Line motions -" map <Leader>j <Plug>(easymotion-j) -" map <Leader>k <Plug>(easymotion-k) - -" nmap s <Plug>(easymotion-s2) -" nmap t <Plug>(easymotion-t2) - -" TODO add separate section for vscode - -" map <Leader>f <Plug>(easymotion-bd-f) -" nmap <Leader>f <Plug>(easymotion-overwin-f) - -" s{char}{char} to move to {char}{char} -nmap <silent> s <Plug>(easymotion-s2) -nmap <silent> S <Plug>(easymotion-overwin-f2) -" map n <Plug>(easymotion-next) -" map N <Plug>(easymotion-prev) -" nmap S <Plug>(easymotion-overwin-t) - -" Move to line -" map <Leader>l <Plug>(easymotion-bd-jk) -" nmap <Leader>l <Plug>(easymotion-overwin-line) - -" " Move to word -" map <Leader>w <Plug>(easymotion-bd-w) -" nmap <Leader>w <Plug>(easymotion-overwin-w) - -" hi link EasyMotionTarget ErrorMsg -" hi link EasyMotionShade Comment -let g:EasyMotion_prompt = '🔎 ' - -" hi link EasyMotionMoveHL Search -" hi link EasyMotionIncSearch Search - -"Lower case finds upper & lower case but upper case only finds upper case -" let g:EasyMotion_smartcase = 1 diff --git a/plug-config/far.vim b/plug-config/far.vim deleted file mode 100644 index 394746de..00000000 --- a/plug-config/far.vim +++ /dev/null @@ -1,67 +0,0 @@ -let g:far#source='rgnvim' -" let g:far#source='rg' -" let g:far#source='vimgrep' -" let g:far#source='ag' - -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 - -" let g:far#ignore_files=['$HOME/.config/nvim/utils/farignore'] -" let g:far#ignore_files=['node_modules/'] - -" Below are the default mappings and corresponding variable names in - -" x v_x - Exclude item under the cursor. - -" i v_i - Include item under the cursor. - -" t v_t - Toggle item exclusion under the cursor. - -" f v_f - Smartly toggle item exclusion under the cursor: exclude all items when all are excluded, otherwise exclude all items. - -" X - Exclude all items. - -" I - Include all items. - -" T - Toggle exclusion for all items. - -" F - Smartly toggle exclusion for all items: include all items when all are excluded, otherwise exclude all items. - -" <CR> - Jump to the source code of the item under the cursor. See |far-jump| - -" p - Open preview window (if not) and scroll to the item under the cursor. See |far-preview| - -" P - Close preview window. See |far-preview| - -" CTRL-K - Scroll preview window up (if open). See |far-preview|, |g:far#preview_window_scroll_step| - -" CTRL-J - Scroll preview window down (if open). See |far-preview|, |g:far#preview_window_scroll_step| - -" zo - Expand node under the cursor. - -" zc - Collapse node under the cursor. - -" za - Toggle node expanding under the cursor. - -" zs - Smartly toggle exclusion for all nodes: expand all nodes when all are collapsed, otherwise collapse all nodes. - -" zr v_zr - Expand all nodes. - -" zm v_zm - Collapse all nodes. - -" zA v_zA - Toggle exclusion for all nodes. - -" zS v_zS - Smartly toggle exclusion for all nodes: expand all nodes when all are collapsed, otherwise collapse all nodes. - -" s v_s - Execute |:Fardo|<CR>, to replace all included items. - -" u v_s - Execute |:Farundo|<CR>, to undo the last replacement by |:Fardo|. - -" U v_U - Execute |:Farundo| --all=1<CR>, to undo all replacements by |:Fardo|. For param '--all=' see |farundo-params|. - -" q v_q - Close searching result buffer and its preview buffer (if exists) diff --git a/plug-config/floaterm.vim b/plug-config/floaterm.vim deleted file mode 100644 index 09eaefa4..00000000 --- a/plug-config/floaterm.vim +++ /dev/null @@ -1,17 +0,0 @@ - -" let g:floaterm_wintype='normal' -" let g:floaterm_height=6 - -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/plug-config/fzf.vim b/plug-config/fzf.vim deleted file mode 100644 index fbb5457f..00000000 --- a/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/plug-config/git-messenger.vim b/plug-config/git-messenger.vim deleted file mode 100644 index f4b14cbb..00000000 --- a/plug-config/git-messenger.vim +++ /dev/null @@ -1 +0,0 @@ -let g:git_messenger_no_default_mappings=1 diff --git a/plug-config/gitgutter.vim b/plug-config/gitgutter.vim deleted file mode 100644 index 9907d8e5..00000000 --- a/plug-config/gitgutter.vim +++ /dev/null @@ -1,15 +0,0 @@ - - -let g:gitgutter_sign_allow_clobber = 1 -let g:gitgutter_sign_added = '▎' -let g:gitgutter_sign_modified = '▎' -let g:gitgutter_sign_removed = '契' -let g:gitgutter_sign_removed_first_line = '契' -let g:gitgutter_sign_modified_removed = '▎' -let g:gitgutter_preview_win_floating = 1 - -let g:gitgutter_enabled = 1 - -highlight GitGutterAdd guifg=#587C0C ctermfg=2 -highlight GitGutterChange guifg=#0C7D9D ctermfg=3 -highlight GitGutterDelete guifg=#94151B ctermfg=1 diff --git a/plug-config/goyo.vim b/plug-config/goyo.vim deleted file mode 100644 index 634faa73..00000000 --- a/plug-config/goyo.vim +++ /dev/null @@ -1,28 +0,0 @@ -" nmap <silent> <leader>z :Goyo<CR> -" autocmd User GoyoEnter set laststatus=0 -" autocmd User GoyoLeave set laststatus=2 -" function! s:goyo_enter() - -" set wrap -" set conceallevel=0 -" set tw=100 -" set noshowcmd -" set scrolloff=999 -" set laststatus=0 - -" endfunction - -" function! s:goyo_leave() - -" set wrap! -" set showcmd -" set scrolloff=5 -" set laststatus=2 - -" endfunction - -" autocmd! User GoyoEnter nested call <SID>goyo_enter() -" autocmd! User GoyoLeave nested call <SID>goyo_leave() - -autocmd! User GoyoEnter lua require('galaxyline').disable_galaxyline() -autocmd! User GoyoLeave lua require('galaxyline').galaxyline_augroup() diff --git a/plug-config/highlightyank.vim b/plug-config/highlightyank.vim deleted file mode 100644 index 9a4a4b0a..00000000 --- a/plug-config/highlightyank.vim +++ /dev/null @@ -1 +0,0 @@ -let g:highlightedyank_highlight_duration = 500 diff --git a/plug-config/illuminate.vim b/plug-config/illuminate.vim deleted file mode 100644 index 75e4a322..00000000 --- a/plug-config/illuminate.vim +++ /dev/null @@ -1,2 +0,0 @@ -" have to disable for html for now until I can just blacklist the highlight group -let g:Illuminate_ftblacklist = ['javascript', 'jsx', 'html'] diff --git a/plug-config/leetcode.vim b/plug-config/leetcode.vim deleted file mode 100644 index a52c7de5..00000000 --- a/plug-config/leetcode.vim +++ /dev/null @@ -1,5 +0,0 @@ -let g:leetcode_browser='chrome' -let g:leetcode_china=0 -let g:leetcode_hide_paid_only=1 -let g:leetcode_solution_filetype='python3' - diff --git a/plug-config/lightbulb.vim b/plug-config/lightbulb.vim deleted file mode 100644 index d869f930..00000000 --- a/plug-config/lightbulb.vim +++ /dev/null @@ -1,2 +0,0 @@ -" Lightbulb -autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb() diff --git a/plug-config/lsp-config.vim b/plug-config/lsp-config.vim deleted file mode 100644 index 6c6d7cf3..00000000 --- a/plug-config/lsp-config.vim +++ /dev/null @@ -1,36 +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) - -" -- `code_action` is a superset of vim.lsp.buf.code_action and you'll be able to -" -- use this mapping also with other language servers - -autocmd FileType java nnoremap ca <Cmd>lua require('jdtls').code_action()<CR> - - - -" -- If using nvim-dap -" -- This requires java-debug and vscode-java-test bundles, see install steps in this README further below. -" nnoremap <leader>df <Cmd>lua require'jdtls'.test_class()<CR> -" nnoremap <leader>dn <Cmd>lua require'jdtls'.test_nearest_method()<CR> - -command! -buffer JdtCompile lua require('jdtls').compile() -command! -buffer JdtUpdateConfig lua require('jdtls').update_project_config() -command! -buffer JdtJol lua require('jdtls').jol() -command! -buffer JdtBytecode lua require('jdtls').javap() -command! -buffer JdtJshell lua require('jdtls').jshell() diff --git a/plug-config/lsp-saga.vim b/plug-config/lsp-saga.vim deleted file mode 100644 index 91e1d01c..00000000 --- a/plug-config/lsp-saga.vim +++ /dev/null @@ -1,9 +0,0 @@ - " TODO find way to add doc abilities back for compe - 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/plug-config/markdown-preview.vim b/plug-config/markdown-preview.vim deleted file mode 100644 index ee106a40..00000000 --- a/plug-config/markdown-preview.vim +++ /dev/null @@ -1,84 +0,0 @@ -" set to 1, nvim will open the preview window after entering the markdown buffer -" default: 0 -let g:mkdp_auto_start = 0 - -" set to 1, the nvim will auto close current preview window when change -" from markdown buffer to another buffer -" default: 1 -let g:mkdp_auto_close = 0 - -" set to 1, the vim will refresh markdown when save the buffer or -" leave from insert mode, default 0 is auto refresh markdown as you edit or -" move the cursor -" default: 0 -let g:mkdp_refresh_slow = 0 - -" set to 1, the MarkdownPreview command can be use for all files, -" by default it can be use in markdown file -" default: 0 -let g:mkdp_command_for_global = 0 - -" set to 1, preview server available to others in your network -" by default, the server listens on localhost (127.0.0.1) -" default: 0 -let g:mkdp_open_to_the_world = 1 - -" use custom IP to open preview page -" useful when you work in remote vim and preview on local browser -" more detail see: https://github.com/iamcco/markdown-preview.nvim/pull/9 -" default empty -let g:mkdp_open_ip = '' - -" specify browser to open preview page -" default: '' -let g:mkdp_browser = '' - -" set to 1, echo preview page url in command line when open preview page -" default is 0 -let g:mkdp_echo_preview_url = 0 - -" a custom vim function name to open preview page -" this function will receive url as param -" default is empty -let g:mkdp_browserfunc = '' - -" options for markdown render -" mkit: markdown-it options for render -" katex: katex options for math -" uml: markdown-it-plantuml options -" maid: mermaid options -" disable_sync_scroll: if disable sync scroll, default 0 -" sync_scroll_type: 'middle', 'top' or 'relative', default value is 'middle' -" middle: mean the cursor position alway show at the middle of the preview page -" top: mean the vim top viewport alway show at the top of the preview page -" relative: mean the cursor position alway show at the relative positon of the preview page -" hide_yaml_meta: if hide yaml metadata, default is 1 -" sequence_diagrams: js-sequence-diagrams options -" content_editable: if enable content editable for preview page, default: v:false -let g:mkdp_preview_options = { - \ 'mkit': {}, - \ 'katex': {}, - \ 'uml': {}, - \ 'maid': {}, - \ 'disable_sync_scroll': 0, - \ 'sync_scroll_type': 'middle', - \ 'hide_yaml_meta': 1, - \ 'sequence_diagrams': {}, - \ 'flowchart_diagrams': {}, - \ 'content_editable': v:false - \ } - -" use a custom markdown style must be absolute path -" like '/Users/username/markdown.css' or expand('~/markdown.css') -let g:mkdp_markdown_css = '' - -" use a custom highlight style must absolute path -" like '/Users/username/highlight.css' or expand('~/highlight.css') -let g:mkdp_highlight_css = '' - -" use a custom port to start server or random for empty -let g:mkdp_port = '' - -" preview page title -" ${name} will be replace with the file name -let g:mkdp_page_title = '「${name}」' diff --git a/plug-config/minimap.vim b/plug-config/minimap.vim deleted file mode 100644 index f518276a..00000000 --- a/plug-config/minimap.vim +++ /dev/null @@ -1,6 +0,0 @@ -let g:minimap_auto_start=0 -let g:minimap_width 10 -let g:minimap_highlight=#4ec9b0 -let g:minimap_base_highlight=#1e1e1e -let g:minimap_block_filetypes=['fugitive', 'nerdtree'] -let g:minimap_left=0 diff --git a/plug-config/neovide.vim b/plug-config/neovide.vim deleted file mode 100644 index 4bdc2e24..00000000 --- a/plug-config/neovide.vim +++ /dev/null @@ -1,5 +0,0 @@ -" set guifont=FiraCode\ Nerd\ Font\ Mono:h22 -set guifont=JetBrainsMono\ Nerd\ Font\ Mono:h22 -" set guifont=Hack\ Nerd\ Font:h22 -" set guifont=Noto\ Color\ Emoji:h22 - diff --git a/plug-config/nerd-commenter.vim b/plug-config/nerd-commenter.vim deleted file mode 100644 index 1a581a53..00000000 --- a/plug-config/nerd-commenter.vim +++ /dev/null @@ -1,3 +0,0 @@ -" nnoremap <silent> <space>/ :Commentary<CR> -vnoremap <silent> <space>/ :Commentary<CR> -autocmd FileType javascript.jsx setlocal commentstring={/*\ %s\ */} diff --git a/plug-config/nvimtree-config.vim b/plug-config/nvimtree-config.vim deleted file mode 100644 index 3371d284..00000000 --- a/plug-config/nvimtree-config.vim +++ /dev/null @@ -1,45 +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': "", - \ } - \ } diff --git a/plug-config/polyglot.vim b/plug-config/polyglot.vim deleted file mode 100644 index 8c82247c..00000000 --- a/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/plug-config/quickscope.vim b/plug-config/quickscope.vim deleted file mode 100644 index 7950dc7d..00000000 --- a/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/plug-config/rainbow.vim b/plug-config/rainbow.vim deleted file mode 100644 index 0900b5ab..00000000 --- a/plug-config/rainbow.vim +++ /dev/null @@ -1,39 +0,0 @@ -let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']] -let g:rainbow_conf = {'guis': ['bold']} -let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle - -" \ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'], -let g:rainbow_conf = { -\ 'guifgs': ['#858580', '#8FBCBB', '#D08770', '#A3BE8C', '#EBCB8B', '#B48EAD', '#80a880', '#887070'], -\ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'], -\ 'guis': [''], -\ 'cterms': [''], -\ 'operators': '_,_', -\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'], -\ 'separately': { -\ '*': {}, -\ 'markdown': { -\ 'parentheses_options': 'containedin=markdownCode contained', -\ }, -\ 'lisp': { -\ 'guifgs': ['#858580', '#8FBCBB', '#D08770', '#A3BE8C', '#EBCB8B', '#B48EAD', '#80a880', '#887070'], -\ }, -\ 'jsx': { -\ 'guifgs': ['#858580', '#8FBCBB', '#D08770', '#A3BE8C', '#EBCB8B', '#B48EAD', '#80a880', '#887070'], -\ }, -\ 'haskell': { -\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/\v\{\ze[^-]/ end=/}/ fold'], -\ }, -\ 'vim': { -\ 'parentheses_options': 'containedin=vimFuncBody', -\ }, -\ 'perl': { -\ 'syn_name_prefix': 'perlBlockFoldRainbow', -\ }, -\ 'stylus': { -\ 'parentheses': ['start=/{/ end=/}/ fold contains=@colorableGroup'], -\ }, -\ 'css': 0, -\ } -\} - diff --git a/plug-config/ranger.vim b/plug-config/ranger.vim deleted file mode 100644 index 9e1ba2d7..00000000 --- a/plug-config/ranger.vim +++ /dev/null @@ -1,3 +0,0 @@ -let g:ranger_replace_netrw = 1 "// open ranger when vim open a directory -"let g:NERDTreeHijackNetrw = 0 // add this line if you use NERDTree -let g:ranger_map_keys = 0 diff --git a/plug-config/rnvimr.vim b/plug-config/rnvimr.vim deleted file mode 100644 index 64eed471..00000000 --- a/plug-config/rnvimr.vim +++ /dev/null @@ -1,25 +0,0 @@ -" Make Ranger replace netrw and be the file explorer -let g:rnvimr_ex_enable = 1 - -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 - -" nmap <leader>r :RnvimrToggle<CR> - -let g:rnvimr_ranger_cmd = 'ranger --cmd="set column_ratios 1,1"' - " \ --cmd="set draw_borders separators"' - -" let g:rnvimr_layout = { 'relative': 'editor', -" \ 'width': float2nr(round(0.6 * &columns)), -" \ 'height': float2nr(round(0.6 * &lines)), -" \ 'col': float2nr(round(0.2 * &columns)), -" \ 'row': float2nr(round(0.2 * &lines)), -" \ 'style': 'minimal' } - -let g:rnvimr_presets = [ - \ {'width': 0.800, 'height': 0.800}] diff --git a/plug-config/sneak.vim b/plug-config/sneak.vim deleted file mode 100644 index a879c6eb..00000000 --- a/plug-config/sneak.vim +++ /dev/null @@ -1,33 +0,0 @@ -let g:sneak#label = 1 - -" case insensitive sneak -let g:sneak#use_ic_scs = 1 - -" imediately move tot 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 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 - - -" Useful info - -" s<Enter> | Repeat the last Sneak. -" S<Enter> | Repeat the last Sneak, in reverse direction. - -" silent! call repeat#set("\<Plug>Sneak_s", v:count) -" silent! call repeat#set("\<Plug>Sneak_S", v:count) diff --git a/plug-config/start-screen.vim b/plug-config/start-screen.vim deleted file mode 100644 index e0e40e70..00000000 --- a/plug-config/start-screen.vim +++ /dev/null @@ -1,39 +0,0 @@ - -let g:startify_custom_header = [ - \ ' _ ___ ________ __ ', - \ ' / | / / | / / ____/___ ____/ /__ ', - \ ' / |/ /| | / / / / __ \/ __ / _ \', - \ ' / /| / | |/ / /___/ /_/ / /_/ / __/', - \ ' /_/ |_/ |___/\____/\____/\__,_/\___/ ', - \] - -let g:startify_session_dir = '~/.config/nvim/session' - - -let g:startify_lists = [ - \ { 'type': 'files', 'header': [' Files'] }, - \ { 'type': 'sessions', 'header': [' Sessions'] }, - \ { 'type': 'bookmarks', 'header': [' Bookmarks'] }, - \ ] - " \ { 'type': 'dir', 'header': [' Current Directory '. getcwd()] }, - - -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 = [ - \ { 'b': '~/Blog' }, - \ { 'i': '~/.config/nvim/init.vim' }, - \ { 'z': '~/.zshrc' }, - \ ] - -let g:startify_enable_special = 0 diff --git a/plug-config/tagalong.vim b/plug-config/tagalong.vim deleted file mode 100644 index 3ddd27b4..00000000 --- a/plug-config/tagalong.vim +++ /dev/null @@ -1,2 +0,0 @@ -let g:tagalong_filetypes = ['html', 'xml', 'jsx', 'eruby', 'ejs', 'eco', 'php', 'htmldjango', 'javascriptreact', 'typescriptreact', 'javascript'] -let g:tagalong_verbose = 1 diff --git a/plug-config/vim-commentary.vim b/plug-config/vim-commentary.vim deleted file mode 100644 index 09ce8958..00000000 --- a/plug-config/vim-commentary.vim +++ /dev/null @@ -1,10 +0,0 @@ -function! Comment() - if (mode() == "n" ) - execute "Commentary" - else - execute "'<,'>Commentary" - endif - endfunction -vnoremap <silent> <space>/ :call Comment() -autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript.jsx -autocmd FileType javascript.jsx setlocal commentstring={/*\ %s\ */} diff --git a/plug-config/vim-rooter.vim b/plug-config/vim-rooter.vim deleted file mode 100644 index 0fea0770..00000000 --- a/plug-config/vim-rooter.vim +++ /dev/null @@ -1 +0,0 @@ -let g:rooter_silent_chdir = 1 diff --git a/plug-config/vim-wiki.vim b/plug-config/vim-wiki.vim deleted file mode 100644 index 5e693fc2..00000000 --- a/plug-config/vim-wiki.vim +++ /dev/null @@ -1,61 +0,0 @@ -" VimWiki - let g:vimwiki_key_mappings = - \ { - \ 'all_maps': 1, - \ 'global': 1, - \ 'headers': 1, - \ 'text_objs': 1, - \ 'table_format': 1, - \ 'table_mappings': 1, - \ 'lists': 1, - \ 'links': 1, - \ 'html': 1, - \ 'mouse': 1, - \ } - -" Filetypes enabled for -let g:vimwiki_filetypes = ['markdown'] - -let g:vimwiki_list = [{'path': '~/.config/nvim/wiki', - \ 'syntax': 'markdown', 'ext': '.md', 'exclude_files': ['**/README.md', '**/Readme.md'] }] - -" let g:vimwiki_auto_header = 0 -" let g:vimwiki_markdown_header_style = 1 -" let g:vimwiki_tags_header_level = 1 -" let g:vimwiki_tags_header = 'Generated Tags' -" let g:vimwiki_links_header_level = 1 -" let g:vimwiki_links_header = 'Generated Links' -" let g:vimwiki_auto_chdir = 0 -" let g:vimwiki_map_prefix = '<Leader>w' -" let g:vimwiki_toc_link_format = 0 -" let g:vimwiki_toc_header_level = 1 -" let g:vimwiki_toc_header = 'Contents' -" let g:vimwiki_autowriteall = 1 -" let g:vimwiki_conceal_pre = 0 -" let g:vimwiki_conceal_onechar_markers = 1 -" let g:vimwiki_conceallevel = 2 -" let g:vimwiki_user_htmls = '' -" let g:vimwiki_valid_html_tags = 'b,i,s,u,sub,sup,kbd,br,hr' -" let g:vimwiki_html_header_numbering_sym = '' -" let g:vimwiki_html_header_numbering = 0 -" let g:vimwiki_dir_link = '' -" let g:vimwiki_markdown_link_ext = 0 -" let g:vimwiki_create_link = 1 -" let g:vimwiki_use_calendar = 1 -" let g:vimwiki_text_ignore_newline = 1 -" let g:vimwiki_list_ignore_newline = 1 -" let g:vimwiki_folding = '' -" let g:vimwiki_listsym_rejected = '✗' -" let g:vimwiki_listsyms = '✗○◐●✓' -" let g:vimwiki_global_ext = 1 -" let g:vimwiki_hl_cb_checked = 0 - - - - -let g:vimwiki_diary_months = { - \ 1: 'January', 2: 'February', 3: 'March', - \ 4: 'April', 5: 'May', 6: 'June', - \ 7: 'July', 8: 'August', 9: 'September', - \ 10: 'October', 11: 'November', 12: 'December' - \ } diff --git a/plug-config/vimspector.vim b/plug-config/vimspector.vim deleted file mode 100644 index 3ab21951..00000000 --- a/plug-config/vimspector.vim +++ /dev/null @@ -1,4 +0,0 @@ -" Experimental -let g:vimspector_base_dir=expand( '$HOME/.config/nvim/vimspector-config' ) -let g:vimspector_enable_mappings='VISUAL_STUDIO' - diff --git a/plug-config/vista.vim b/plug-config/vista.vim deleted file mode 100644 index 449383c9..00000000 --- a/plug-config/vista.vim +++ /dev/null @@ -1,9 +0,0 @@ -" let g:vista_default_executive = 'coc' -let g:vista_fzf_preview = ['right:50%'] - -let g:vista#renderer#enable_icon = 1 - -let g:vista#renderer#icons = { -\ "function": "\uf794", -\ "variable": "\uf71b", -\ } diff --git a/plug-config/window-swap.vim b/plug-config/window-swap.vim deleted file mode 100644 index a1966bc6..00000000 --- a/plug-config/window-swap.vim +++ /dev/null @@ -1 +0,0 @@ -let g:windowswap_map_keys = 0 "prevent default bindings diff --git a/plug-config/xtabline.vim b/plug-config/xtabline.vim deleted file mode 100644 index 1986d693..00000000 --- a/plug-config/xtabline.vim +++ /dev/null @@ -1,54 +0,0 @@ -let g:xtabline_settings = {} - -let g:xtabline_settings.enable_mappings = 0 - -let g:xtabline_settings.tabline_modes = ['buffers', 'tabs'] - -let g:xtabline_settings.enable_persistance = 0 - -" let g:xtabline_settings.last_open_first = 1 -let g:xtabline_lazy = 1 - -let g:xtabline_settings.show_right_corner = 0 - -let g:xtabline_settings.indicators = { - \ 'modified': '+', - \ 'pinned': '[📌]', - \} - " \ 'modified': '●', - -let g:xtabline_settings.icons = { - \'pin': '📌', - \'star': '*', - \'book': '📖', - \'lock': '🔒', - \'hammer': '🔨', - \'tick': '✔', - \'cross': '✖', - \'warning': '⚠', - \'menu': '☰', - \'apple': '🍎', - \'linux': '🐧', - \'windows': '⌘', - \'git': '', - \'palette': '🎨', - \'lens': '🔍', - \'flag': '🏁', - \} - -" let g:which_key_map.T = { -" \ 'name' : '+tabline' , -" \ 'b' : [':XTabListBuffers' , 'list buffers'], -" \ 'd' : [':XTabCloseBuffer' , 'close buffer'], -" \ 'D' : [':XTabDeleteTab' , 'close tab'], -" \ 'h' : [':XTabHideBuffer' , 'hide buffer'], -" \ 'i' : [':XTabInfo' , 'info'], -" \ 'l' : [':XTabLock' , 'lock tab'], -" \ 'm' : [':XTabMode' , 'toggle mode'], -" \ 'n' : [':tabNext' , 'next tab'], -" \ 'N' : [':XTabMoveBufferNext' , 'buffer->'], -" \ 't' : [':tabnew' , 'new tab'], -" \ 'p' : [':tabprevious' , 'prev tab'], -" \ 'P' : [':XTabMoveBufferPrev' , '<-buffer'], -" \ 'x' : [':XTabPinBuffer' , 'pin buffer'], -" \ } |