summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-02-08 21:53:11 -0600
committerzachir <zachir@librem.one>2024-02-15 02:42:28 -0600
commit670b423e9a1f5a40baf942fdc3de947473f810b5 (patch)
tree5c38553efd2fefc2ff7e15028ce6b4e67268ad0d /nvim
parent25c55f7f987be9c777a2bdfaa308ab6fa558d8d6 (diff)
nvim: Use DevC++ colo for c/c++ files
This uses a colorscheme specifically for c/c++ files when editing c/c++ files.
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
index e2925cf..4e6a2c5 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -193,6 +193,12 @@ augroup custom
au BufEnter *.tex :LLPStartPreview
au BufEnter *.md :set textwidth=80
au BufEnter *.ms :set textwidth=80
+ au BufEnter *.c :colo DevC++
+ au BufEnter *.h :colo DevC++
+ au BufEnter *.cc :colo DevC++
+ au BufEnter *.hh :colo DevC++
+ au BufEnter *.cpp :colo DevC++
+ au BufEnter *.hpp :colo DevC++
au BufWritePost init.vim :source %
au BufWritePost *.tex :make
au BufWritePost *sxhkdrc* :!pkill -USR1 -x sxhkd