Skip to content

Commit

Permalink
feat(tex): latexindent
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Nov 28, 2023
1 parent ab196cf commit cb5a430
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions root/.vim/coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"json.enable": true,
"json.schemaDownload.enable": true,
"marksman.enable": false,
"texlab.latexFormatter": "latexindent",
"coc.source.around.shortcut": "around",
"coc.source.buffer.shortcut": "buffer",
"coc.source.dictionary.enable": false,
Expand Down
1 change: 1 addition & 0 deletions root/.vim/vimrc.d/coc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"
" coc-codegeex: Aminer的代码片段生成器,暂时不可用
let g:coc_filetype_map = {'tex': 'latex'}
autocmd FileType tex ++once call coc#config('texlab.latexindent.local', $VIMRC_ROOT . "/latexindent.yaml")

function! s:show_documentation()
if CocAction('hasProvider', 'hover')
Expand Down
1 change: 1 addition & 0 deletions root/latexindent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaultIndent: ' '

0 comments on commit cb5a430

Please sign in to comment.