Added plugins for js/md

This commit is contained in:
dbroqua 2020-07-11 08:27:10 +02:00
parent 0ad2077d3c
commit e8be865e16

View File

@ -19,13 +19,19 @@ call plug#begin('~/.vim/plugged')
Plug 'mileszs/ack.vim' Plug 'mileszs/ack.vim'
Plug 'ctrlpvim/ctrlp.vim' Plug 'ctrlpvim/ctrlp.vim'
Plug 'moll/vim-node' Plug 'moll/vim-node'
Plug 'pangloss/vim-javascript'
Plug '1995eaton/vim-better-javascript-completion'
Plug 'heavenshell/vim-jsdoc', { Plug 'heavenshell/vim-jsdoc', {
\ 'for': ['javascript', 'javascript.jsx','typescript'], \ 'for': ['javascript', 'javascript.jsx','typescript'],
\ 'do': 'make install' \ 'do': 'make install'
\} \}
Plug 'JamshedVesuna/vim-markdown-preview'
" Initialize plugin system " Initialize plugin system
call plug#end() call plug#end()
" -- Markdown preview
let vim_markdown_preview_browser='Mozilla Firefox'
" -- Display " -- Display
colorscheme nord colorscheme nord
set title set title
@ -34,6 +40,10 @@ set ruler
set wrap set wrap
set scrolloff=5 set scrolloff=5
syntax enable syntax enable
set encoding=utf-8
set fileencoding=utf-8
set showmatch " When a bracket is inserted, briefly jump to the matching one
set cursorline " Highlight the screen line of the cursor
filetype on filetype on
filetype plugin on filetype plugin on
@ -82,9 +92,10 @@ set hidden
:map <C-x> <Esc> :map <C-x> <Esc>
" Code formating " Code formating
set expandtab set smartindent " Do smart autoindenting when starting a new line
set tabstop=2 set tabstop=2 " Number of spaces that a <Tab> in the file counts for
set shiftwidth=2 set shiftwidth=2 " Alignment with '<' and '>'
set expandtab " Use spaces instead of tab
let b:ale_linters = ['eslint'] let b:ale_linters = ['eslint']
let g:ale_fixers = { let g:ale_fixers = {
@ -98,3 +109,10 @@ augroup myTodo
autocmd Syntax * syntax match myTodo /\v\_.<(TODO|FIXME|INFO).*/hs=s+1 containedin=.*Comment autocmd Syntax * syntax match myTodo /\v\_.<(TODO|FIXME|INFO).*/hs=s+1 containedin=.*Comment
augroup END augroup END
highlight link myTodo Todo highlight link myTodo Todo
" -- Plugins configurations
" vim-javascript
let g:javascript_plugin_jsdoc = 1 " Enables syntax highlighting for JSDocs
let g:javascript_plugin_flow = 1 " Enables syntax highlighting for Flow