Skip to content

Commit

Permalink
add plugins, do not ask why
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Mar 31, 2021
1 parent 8f3483d commit 8ea7315
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autoload/aceforeverd/completion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ function! aceforeverd#completion#init_source_coc() abort
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
nmap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "<Plug>(SmoothieForwards)"
nmap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "<Plug>(SmoothieBackwards)"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
Expand Down
19 changes: 17 additions & 2 deletions coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"diagnostic-languageserver.filetypes": {
"vim": "vint",
"sh": "shellcheck",
"markdown": ["write-good"],
"markdown": ["write-good", "languagetool"],
"cpp": ["cpplint"],
"dockerfile": ["hadolint"],
"python": ["mypy", "pylint"]
Expand Down Expand Up @@ -71,5 +71,20 @@
]
}
},
"translator.engines":["google"]
"diagnostic-languageserver.formatters": {
"black": {
"command": "black",
"args": ["-q", "-"]
},
"isort": {
"command": "isort",
"args": ["-q", "-"]
},
"docformatter": {
"command": "docformatter",
"args": ["-"]
}
},
// coc-translator
"translator.engines": ["google"]
}
2 changes: 2 additions & 0 deletions vimrc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ if dein#load_state(s:dein_repo)
call dein#add('mhinz/vim-startify')
call dein#add('ntpeters/vim-better-whitespace')
call dein#add('majutsushi/tagbar')
call dein#add('liuchengxu/vista.vim')
call dein#add('wincent/terminus')
call dein#add('psliwka/vim-smoothie')
call dein#add('chrisbra/Colorizer')
call dein#add('junegunn/rainbow_parentheses.vim')

Expand Down

0 comments on commit 8ea7315

Please sign in to comment.