summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/after/ftdetect/prr.vim1
-rw-r--r--.config/nvim/after/ftplugin/dockerfile.vim1
-rw-r--r--.config/nvim/after/ftplugin/json.vim1
-rw-r--r--.config/nvim/after/ftplugin/markdown.vim1
-rw-r--r--.config/nvim/after/syntax/prr.vim22
5 files changed, 26 insertions, 0 deletions
diff --git a/.config/nvim/after/ftdetect/prr.vim b/.config/nvim/after/ftdetect/prr.vim
new file mode 100644
index 0000000..15a474c
--- /dev/null
+++ b/.config/nvim/after/ftdetect/prr.vim
@@ -0,0 +1 @@
+au BufNewFile,BufRead *.prr set filetype=prr
diff --git a/.config/nvim/after/ftplugin/dockerfile.vim b/.config/nvim/after/ftplugin/dockerfile.vim
new file mode 100644
index 0000000..b388056
--- /dev/null
+++ b/.config/nvim/after/ftplugin/dockerfile.vim
@@ -0,0 +1 @@
+let g:indentLine_enabled = 0
diff --git a/.config/nvim/after/ftplugin/json.vim b/.config/nvim/after/ftplugin/json.vim
new file mode 100644
index 0000000..b388056
--- /dev/null
+++ b/.config/nvim/after/ftplugin/json.vim
@@ -0,0 +1 @@
+let g:indentLine_enabled = 0
diff --git a/.config/nvim/after/ftplugin/markdown.vim b/.config/nvim/after/ftplugin/markdown.vim
new file mode 100644
index 0000000..b388056
--- /dev/null
+++ b/.config/nvim/after/ftplugin/markdown.vim
@@ -0,0 +1 @@
+let g:indentLine_enabled = 0
diff --git a/.config/nvim/after/syntax/prr.vim b/.config/nvim/after/syntax/prr.vim
new file mode 100644
index 0000000..43a0557
--- /dev/null
+++ b/.config/nvim/after/syntax/prr.vim
@@ -0,0 +1,22 @@
+" Vim syntax file
+" Language: prr
+" Maintainer: Daniel Xu <dxu@dxuuu.xyz>
+" Last Change: 2022 Mar 25
+" Credits: Bram Moolenaar <Bram@vim.org>
+"
+" This version is copied and edited from diff.vim
+
+" Check whether an earlier file has defined a syntax already
+if exists("b:current_syntax")
+ finish
+endif
+
+syn match diffAdded "^> +.*"
+syn match diffRemoved "^> -.*"
+
+" Define the default highlighting.
+" Only used when an item doesn't have highlighting yet
+hi def link diffAdded Type
+hi def link diffRemoved Statement
+
+let b:current_syntax = "prr"