diff options
author | Santo Cariotti <santo@dcariotti.me> | 2023-01-09 18:35:38 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2023-01-09 18:35:38 +0100 |
commit | da622343808a106653e5a377522d6147665ba36e (patch) | |
tree | 61a2dd6efe4b2946d15fbb768e999c7541849a7b /.config/nvim/after | |
parent | 374b9ceff4142802a4eb64277143fd89fc8b5a5c (diff) |
Add after folder
Diffstat (limited to '.config/nvim/after')
-rw-r--r-- | .config/nvim/after/ftdetect/prr.vim | 1 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/dockerfile.vim | 1 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/json.vim | 1 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/markdown.vim | 1 | ||||
-rw-r--r-- | .config/nvim/after/syntax/prr.vim | 22 |
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" |