From da622343808a106653e5a377522d6147665ba36e Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 9 Jan 2023 18:35:38 +0100 Subject: Add after folder --- .config/nvim/after/ftdetect/prr.vim | 1 + .config/nvim/after/ftplugin/dockerfile.vim | 1 + .config/nvim/after/ftplugin/json.vim | 1 + .config/nvim/after/ftplugin/markdown.vim | 1 + .config/nvim/after/syntax/prr.vim | 22 ++++++++++++++++++++++ 5 files changed, 26 insertions(+) create mode 100644 .config/nvim/after/ftdetect/prr.vim create mode 100644 .config/nvim/after/ftplugin/dockerfile.vim create mode 100644 .config/nvim/after/ftplugin/json.vim create mode 100644 .config/nvim/after/ftplugin/markdown.vim create mode 100644 .config/nvim/after/syntax/prr.vim (limited to '.config/nvim') 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 +" Last Change: 2022 Mar 25 +" Credits: Bram Moolenaar +" +" 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" -- cgit v1.2.3-18-g5258