mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
nvim add LaTeX configs
This commit is contained in:
17
init.vim
17
init.vim
@@ -51,6 +51,9 @@ Plug 'tomlion/vim-solidity'
|
|||||||
" circom
|
" circom
|
||||||
Plug 'iden3/vim-circom-syntax'
|
Plug 'iden3/vim-circom-syntax'
|
||||||
|
|
||||||
|
" LaTeX support. It needs latexmk & zathura
|
||||||
|
Plug 'lervag/vimtex'
|
||||||
|
|
||||||
"
|
"
|
||||||
" " deoplete
|
" " deoplete
|
||||||
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
@@ -193,6 +196,20 @@ let g:rainbow_active = 1
|
|||||||
au BufRead,BufNewFile *.circom set filetype=circom
|
au BufRead,BufNewFile *.circom set filetype=circom
|
||||||
au BufRead,BufNewFile *.circuit set filetype=go-snark-circuit
|
au BufRead,BufNewFile *.circuit set filetype=go-snark-circuit
|
||||||
|
|
||||||
|
"" LaTeX vimtex config:
|
||||||
|
" Important: This config needs latexmk & zathura to be installed.
|
||||||
|
"
|
||||||
|
" This is necessary for VimTeX to load properly. The "indent" is optional.
|
||||||
|
" Note that most plugin managers will do this automatically.
|
||||||
|
filetype plugin indent on
|
||||||
|
" This enables Vim's and neovim's syntax-related features. Without this, some
|
||||||
|
" VimTeX features will not work (see ":help vimtex-requirements" for more
|
||||||
|
" info).
|
||||||
|
syntax enable
|
||||||
|
" Viewer options: One may configure the viewer either by specifying a built-in
|
||||||
|
" viewer method:
|
||||||
|
let g:vimtex_view_method = 'zathura'
|
||||||
|
|
||||||
"" sage syntax
|
"" sage syntax
|
||||||
augroup filetypedetect
|
augroup filetypedetect
|
||||||
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
|
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ cp ./vimconfigbase.vim ~/vimconfigbase.vim
|
|||||||
echo "installing neovim"
|
echo "installing neovim"
|
||||||
# alternative: apt-get install python3-neovim
|
# alternative: apt-get install python3-neovim
|
||||||
apt-get -y install neovim
|
apt-get -y install neovim
|
||||||
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
||||||
|
|
||||||
echo "setting nvim config"
|
echo "setting nvim config"
|
||||||
mkdir ~/.config
|
mkdir ~/.config
|
||||||
|
|||||||
Reference in New Issue
Block a user