Incremental dev on plugin organization. Going through coc now.
This commit is contained in:
parent
15e26b0f6d
commit
22ae159101
|
|
@ -52,3 +52,4 @@ nnoremap <C-p><C-h> :Helptags<CR>
|
|||
nnoremap <C-p><C-m> :Maps<CR>
|
||||
nnoremap <C-p><C-b> :Buffers<CR>
|
||||
nnoremap <C-p><C-f> :Filetypes<CR>
|
||||
nnoremap <C-p><C-l> :Lines<CR>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Plug 'junegunn/vim-github-dashboard'
|
||||
|
|
@ -27,17 +27,16 @@ set signcolumn=yes
|
|||
|
||||
" 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.
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
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()
|
||||
|
||||
|
|
@ -102,8 +101,8 @@ omap if <Plug>(coc-funcobj-i)
|
|||
omap af <Plug>(coc-funcobj-a)
|
||||
|
||||
" Use <TAB> for select selections ranges, needs server support, like: coc-tsserver, coc-python
|
||||
nmap <silent> <TAB> <Plug>(coc-range-select)
|
||||
xmap <silent> <TAB> <Plug>(coc-range-select)
|
||||
"nmap <silent> <TAB> <Plug>(coc-range-select)
|
||||
"xmap <silent> <TAB> <Plug>(coc-range-select)
|
||||
|
||||
" Use `:Format` to format current buffer
|
||||
command! -nargs=0 Format :call CocAction('format')
|
||||
|
|
@ -149,8 +148,6 @@ let g:markdown_fenced_languages = [
|
|||
" Fancy markdown syntax
|
||||
let g:markdown_fenced_languages = ['css', 'js=javascript']
|
||||
|
||||
|
||||
|
||||
" Using CocList
|
||||
" Show all diagnostics
|
||||
nnoremap <silent> <space>a :<C-u>CocList diagnostics<cr>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
" NERDTree -----------------------------
|
||||
" Better file browser
|
||||
Plug 'preservim/nerdtree'
|
||||
|
||||
" toggle nerdtree display
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
|
||||
" open nerdtree with the current file selected
|
||||
nmap <leader><C-n> :NERDTreeFind<CR>
|
||||
|
||||
" don't show these file types
|
||||
let NERDTreeIgnore = ['\.pyc$', '\.pyo$']
|
||||
|
||||
|
|
@ -23,35 +23,24 @@ nnoremap <buffer> <leader>e viW"ay :e <C-r>a<CR>
|
|||
" Use ,g to jump to plugin readme on github.
|
||||
nnoremap <buffer> <leader>g 0wwlvt."ay :!open https://github.com/<C-r>a<CR>
|
||||
" Use ,x to format Plug 'junegunn/vim-emoji' -> runtime plugconfig/junegunn/vim-emoji
|
||||
nnoremap <buffer> <leader>x 0ciwruntime plugconfig/<esc>t'xxf'xa.vim<esc>
|
||||
nnoremap <buffer> <leader>x 0"xyyciwruntime plugconfig/<esc>t'xxf'xa.vim<esc><leader>e"xp
|
||||
runtime plugconfig/junegunn/vim-emoji.vim
|
||||
runtime plugconfig/pechorin/any-jump.vim
|
||||
runtime plugconfig/townk/vim-autoclose.vim
|
||||
runtime plugconfig/tpope/vim-repeat.vim
|
||||
runtime plugconfig/liuchengxu/vim-which-key.vim
|
||||
runtime plugconfig/airblade/vim-rooter.vim
|
||||
"runtime plugconfig/airblade/vim-rooter.vim
|
||||
runtime plugconfig/luochen1990/rainbow.vim
|
||||
runtime plugconfig/preservim/nerdcommenter.vim
|
||||
runtime plugconfig/preservim/nerdtree.vim
|
||||
runtime plugconfig/neoclide/coc.vim.vim
|
||||
runtime plugconfig/junegunn/fzf.vim
|
||||
runtime plugconfig/arielrossanigo/dir-configs-override.vim.vim
|
||||
runtime plugconfig/voldikss/vim-floaterm.vim
|
||||
runtime plugconfig/honza/vim-snippets.vim
|
||||
runtime plugconfig/justinmk/vim-sneak.vim
|
||||
runtime plugconfig/honza/vim-snippets.vim
|
||||
runtime plugconfig/unblevable/quick-scope.vim
|
||||
runtime plugconfig/junegunn/fzf.vim
|
||||
runtime plugconfig/unblevable/quick-scope.vim
|
||||
" TODO GITHUB DASHBOARD
|
||||
Plug 'junegunn/vim-github-dashboard'
|
||||
" Better file browser
|
||||
Plug 'preservim/nerdtree'
|
||||
" NERDTree -----------------------------
|
||||
" toggle nerdtree display
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
nmap <leader><C-n> :NERDTreeFind<CR>
|
||||
" open nerdtree with the current file selected
|
||||
" don't show these file types
|
||||
let NERDTreeIgnore = ['\.pyc$', '\.pyo$']
|
||||
|
||||
runtime plugconfig/junegunn/vim-github-dashboard.vim
|
||||
|
||||
" Tagbar -----------------------------
|
||||
Plug 'majutsushi/tagbar'
|
||||
|
|
|
|||
Loading…
Reference in New Issue