summary refs log tree commit diff
path: root/home/.config/nvim/syntax
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-10 14:49:00 -0400
committerJune McEnroe <june@causal.agency>2018-09-10 14:49:00 -0400
commitc16bdeb22274bb381b1b27ce27458d18b016fac8 (patch)
tree2eb086d6ac98766f4812c6ac852868588a411f53 /home/.config/nvim/syntax
parentFix Nm usage in multi-name man pages (diff)
downloadsrc-c16bdeb22274bb381b1b27ce27458d18b016fac8.tar.gz
src-c16bdeb22274bb381b1b27ce27458d18b016fac8.zip
Add mdoc syntax file
Diffstat (limited to 'home/.config/nvim/syntax')
-rw-r--r--home/.config/nvim/syntax/mdoc.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/home/.config/nvim/syntax/mdoc.vim b/home/.config/nvim/syntax/mdoc.vim
new file mode 100644
index 00000000..d9d587f5
--- /dev/null
+++ b/home/.config/nvim/syntax/mdoc.vim
@@ -0,0 +1,12 @@
+if exists("b:current_syntax")
+	finish
+endif
+
+runtime! syntax/nroff.vim
+unlet! b:current_syntax
+
+setlocal sections+=ShSs
+syntax match mdocBlank /^\.$/ conceal
+setlocal conceallevel=2
+
+let b:current_syntax = "mdoc"