summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2024-01-05 17:48:47 +0100
committerache <ache@ache.one>2024-01-05 17:48:47 +0100
commita29d627dd8fa805664426181cd8c70689ea4dd86 (patch)
treec5e9cedb6b12b01947fae2b22181137b34713fd5
parentImprove relative numbering (diff)
Remove syntax plugin
-rw-r--r--plugin/snip.vim30
1 files changed, 0 insertions, 30 deletions
diff --git a/plugin/snip.vim b/plugin/snip.vim
deleted file mode 100644
index 5f8bfc3..0000000
--- a/plugin/snip.vim
+++ /dev/null
@@ -1,30 +0,0 @@
-" Use <C-l> for trigger snippet expand.
-imap <C-l> <Plug>(coc-snippets-expand)
-
-" Use <C-j> for select text for visual placeholder of snippet.
-vmap <C-j> <Plug>(coc-snippets-select)
-
-" Use <C-j> for jump to next placeholder, it's default of coc.nvim
-let g:coc_snippet_next = '<c-j>'
-
-" Use <C-k> for jump to previous placeholder, it's default of coc.nvim
-let g:coc_snippet_prev = '<c-k>'
-
-" Use <C-j> for both expand and jump (make expand higher priority.)
-imap <C-j> <Plug>(coc-snippets-expand-jump)
-
-" Use <leader>x for convert visual selected code to snippet
-xmap <leader>x <Plug>(coc-convert-snippet)
-
-inoremap <silent><expr> <TAB>
- \ pumvisible() ? coc#_select_confirm() :
- \ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
- \ <SID>check_back_space() ? "\<TAB>" :
- \ coc#refresh()
-
-function! s:check_back_space() abort
- let col = col('.') - 1
- return !col || getline('.')[col - 1] =~# '\s'
-endfunction
-
-let g:coc_snippet_next = '<tab>'