Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
132 lines
5.2 KiB
VimL
132 lines
5.2 KiB
VimL
"=============================================================================
|
|
" latex.vim --- lang#latex layer for SpaceVim
|
|
" Copyright (c) 2016-2023 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
|
" URL: https://spacevim.org
|
|
" License: GPLv3
|
|
"=============================================================================
|
|
|
|
""
|
|
" @section lang#latex, layers-lang-latex
|
|
" @parentsection layers
|
|
" This layer is for latex development, disabled by default, to enable this
|
|
" layer, add following snippet to your SpaceVim configuration file.
|
|
" >
|
|
" [[layers]]
|
|
" name = 'lang#latex'
|
|
" <
|
|
"
|
|
" @subsection Key bindings
|
|
" >
|
|
" Mode Key Function
|
|
" ---------------------------------------------
|
|
" normal SPC l i vimtex-info
|
|
" normal SPC l I vimtex-info-full
|
|
" normal SPC l t vimtex-toc-open
|
|
" normal SPC l T vimtex-toc-toggle
|
|
" normal SPC l y vimtex-labels-open
|
|
" normal SPC l Y vimtex-labels-toggle
|
|
" normal SPC l v vimtex-view
|
|
" normal SPC l r vimtex-reverse-search
|
|
" normal SPC l l vimtex-compile
|
|
" normal SPC l L vimtex-compile-selected
|
|
" normal SPC l k vimtex-stop
|
|
" normal SPC l K vimtex-stop-all
|
|
" normal SPC l e vimtex-errors
|
|
" normal SPC l o vimtex-compile-output
|
|
" normal SPC l g vimtex-status
|
|
" normal SPC l G vimtex-status-all
|
|
" normal SPC l c vimtex-clean
|
|
" normal SPC l C vimtex-clean-full
|
|
" normal SPC l m vimtex-imaps-list
|
|
" normal SPC l x vimtex-reload
|
|
" normal SPC l X vimtex-reload-state
|
|
" normal SPC l s vimtex-toggle-main
|
|
" <
|
|
|
|
function! SpaceVim#layers#lang#latex#plugins() abort
|
|
let plugins = []
|
|
call add(plugins, ['lervag/vimtex', {'merged' : 0, 'on_ft': ['bib', 'tex']}])
|
|
return plugins
|
|
endfunction
|
|
|
|
function! SpaceVim#layers#lang#latex#config() abort
|
|
let g:tex_flavor = 'latex'
|
|
call SpaceVim#mapping#space#regesit_lang_mappings('tex', function('s:language_specified_mappings'))
|
|
endfunction
|
|
|
|
function! s:language_specified_mappings() abort
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','i'],
|
|
\ '<plug>(vimtex-info)',
|
|
\ 'vimtex-info', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','I'],
|
|
\ '<plug>(vimtex-info-full)',
|
|
\ 'vimtex-info-full', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','t'],
|
|
\ '<plug>(vimtex-toc-open)',
|
|
\ 'vimtex-toc-open', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','T'],
|
|
\ '<plug>(vimtex-toc-toggle)',
|
|
\ 'vimtex-toc-toggle', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','y'],
|
|
\ '<plug>(vimtex-labels-open)',
|
|
\ 'vimtex-labels-open', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','Y'],
|
|
\ '<plug>(vimtex-labels-toggle)',
|
|
\ 'vimtex-labels-toggle', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','v'],
|
|
\ '<plug>(vimtex-view)',
|
|
\ 'vimtex-view', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','r'],
|
|
\ '<plug>(vimtex-reverse-search)',
|
|
\ 'vimtex-reverse-search', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','l'],
|
|
\ '<plug>(vimtex-compile)',
|
|
\ 'vimtex-compile', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','L'],
|
|
\ '<plug>(vimtex-compile-selected)',
|
|
\ 'vimtex-compile-selected', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','k'],
|
|
\ '<plug>(vimtex-stop)',
|
|
\ 'vimtex-stop', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','K'],
|
|
\ '<plug>(vimtex-stop-all)',
|
|
\ 'vimtex-stop-all', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','e'],
|
|
\ '<plug>(vimtex-errors)',
|
|
\ 'vimtex-errors', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','o'],
|
|
\ '<plug>(vimtex-compile-output)',
|
|
\ 'vimtex-compile-output', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','g'],
|
|
\ '<plug>(vimtex-status)',
|
|
\ 'vimtex-status', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','G'],
|
|
\ '<plug>(vimtex-status-all)',
|
|
\ 'vimtex-status-all', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','c'],
|
|
\ '<plug>(vimtex-clean)',
|
|
\ 'vimtex-clean', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','C'],
|
|
\ '<plug>(vimtex-clean-full)',
|
|
\ 'vimtex-clean-full', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','m'],
|
|
\ '<plug>(vimtex-imaps-list)',
|
|
\ 'vimtex-imaps-list', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','x'],
|
|
\ '<plug>(vimtex-reload)',
|
|
\ 'vimtex-reload', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','X'],
|
|
\ '<plug>(vimtex-reload-state)',
|
|
\ 'vimtex-reload-state', 0)
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','s'],
|
|
\ '<plug>(vimtex-toggle-main)',
|
|
\ 'vimtex-toggle-main', 0)
|
|
endfunction
|
|
|
|
function! SpaceVim#layers#lang#latex#health() abort
|
|
call SpaceVim#layers#lang#latex#plugins()
|
|
call SpaceVim#layers#lang#latex#config()
|
|
return 1
|
|
endfunction
|