Add markdown support

This commit is contained in:
2021-06-20 15:14:57 +01:00
parent 40b9ec87f9
commit ffb080ca7f

View File

@@ -7,6 +7,8 @@ if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autolo
autocmd VimEnter * PlugInstall autocmd VimEnter * PlugInstall
endif endif
let g:polyglot_disabled = ['markdown']
call plug#begin(stdpath('data') . '/plugged') call plug#begin(stdpath('data') . '/plugged')
Plug 'rafi/awesome-vim-colorschemes' Plug 'rafi/awesome-vim-colorschemes'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
@@ -18,7 +20,9 @@ Plug 'jiangmiao/auto-pairs'
Plug 'pangloss/vim-javascript' Plug 'pangloss/vim-javascript'
Plug 'mattn/emmet-vim' Plug 'mattn/emmet-vim'
Plug 'dylanaraps/wal.vim' Plug 'dylanaraps/wal.vim'
"Plug 'sheerun/vim-polyglot' Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'sheerun/vim-polyglot'
"Plug 'phpactor/phpactor', { 'do': 'composer install', 'for': 'php' } "Plug 'phpactor/phpactor', { 'do': 'composer install', 'for': 'php' }
"Plug 'ncm2/ncm2' "Plug 'ncm2/ncm2'
@@ -51,6 +55,7 @@ set undodir=/tmp// "Store undo history in the /tmp directory
set undofile "Store the undo history set undofile "Store the undo history
"set spell "Enable spell checking "set spell "Enable spell checking
set autowriteall "Save the file when switching buffers set autowriteall "Save the file when switching buffers
set colorcolumn=80,120
"}}} "}}}
" Visuals ---- {{{ " Visuals ---- {{{
@@ -151,6 +156,10 @@ function ToggleEmmet()
endif endif
endfunction endfunction
nnoremap <Leader>em :call ToggleEmmet()<cr> nnoremap <Leader>em :call ToggleEmmet()<cr>
" Conceal markdown text
set conceallevel=3
" }}} " }}}
" Moving around --- {{{ " Moving around --- {{{