Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tags layer #1649

Merged
merged 1 commit into from Apr 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions autoload/SpaceVim/layers/tags.vim
Expand Up @@ -35,16 +35,16 @@ function! SpaceVim#layers#tags#config() abort
autocmd!
autocmd BufEnter *
\ if empty(&buftype) && &filetype != 'help'
\| nnoremap <silent><buffer> <C-]> :call MyTagfunc()<CR>
\| nnoremap <silent><buffer> <C-[> :call MyTagfuncBack()<CR>
\| nnoremap <silent><buffer> <Leader>] :call MyTagfunc()<CR>
\| nnoremap <silent><buffer> <Leader>[ :call MyTagfuncBack()<CR>
\| endif
augroup END
endfunction

function! MyTagfunc() abort
mark H
let s:MyTagfunc_flag = 1
UniteWithCursorWord -immediately tag
UniteWithCursorWord -force-immediately tag
endfunction

function! MyTagfuncBack() abort
Expand Down