save
This commit is contained in:
21
nvim/.config/nvim/ftplugin/markdown.vim
Normal file
21
nvim/.config/nvim/ftplugin/markdown.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
setlocal textwidth=80
|
||||
setlocal wrap
|
||||
setlocal linebreak
|
||||
setlocal nolist
|
||||
setlocal spell
|
||||
setlocal spelllang=en_us
|
||||
setlocal conceallevel=2
|
||||
setlocal concealcursor=nv
|
||||
setlocal foldmethod=expr
|
||||
setlocal foldexpr=MarkdownFold()
|
||||
setlocal autoindent
|
||||
setlocal shiftwidth=2
|
||||
setlocal tabstop=2
|
||||
setlocal expandtab
|
||||
|
||||
function! MarkdownFold()
|
||||
if getline(v:lnum) =~ '^#'
|
||||
return '>' . (strlen(matchstr(getline(v:lnum), '^#*')) + 1)
|
||||
endif
|
||||
return '='
|
||||
endfunction
|
||||
Reference in New Issue
Block a user