config updates
This commit is contained in:
parent
8eeaaffa63
commit
e853d10ffd
|
@ -1,3 +1,5 @@
|
|||
{
|
||||
"coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "javascript", "typescript", "typescriptreact", "go"]
|
||||
"coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "javascript", "typescript", "typescriptreact", "go"],
|
||||
"eslint.autoFixOnSave": true,
|
||||
"diagnostic.checkCurrentLine": true
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ nnoremap j gj
|
|||
nnoremap k gk
|
||||
|
||||
" FZF Bindings
|
||||
nnoremap <C-F> :Files<CR>
|
||||
noremap <leader><leader> :GFiles<CR>
|
||||
nnoremap <leader>C :Colors<CR>
|
||||
nnoremap <leader><CR> :Buffers<CR>
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
" Use tab for trigger completion with characters ahead and navigate.
|
||||
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
||||
" other plugin before putting this into your config.
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
|
@ -86,3 +84,13 @@ command! -nargs=? Fold :call CocAction('fold', <f-args>)
|
|||
|
||||
" Add `:OR` command for organize imports of the current buffer.
|
||||
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
|
||||
|
||||
" <M-Esc>" 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>"
|
||||
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>"
|
||||
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue