From 300e16daceb3861be4a6c523192d82d313c256b2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Feb 2021 15:07:03 +0000 Subject: [PATCH] home: vim: add 'ftdetect' --- home/vim/default.nix | 4 ++++ home/vim/ftdetect/automake.vim | 2 ++ home/vim/ftdetect/tikz.vim | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 home/vim/ftdetect/automake.vim create mode 100644 home/vim/ftdetect/tikz.vim diff --git a/home/vim/default.nix b/home/vim/default.nix index ec208b9..63dc47a 100644 --- a/home/vim/default.nix +++ b/home/vim/default.nix @@ -47,6 +47,10 @@ }; xdg.configFile = { + "nvim/ftdetect" = { + source = ./ftdetect; + }; + "nvim/plugin" = { source = ./plugin; }; diff --git a/home/vim/ftdetect/automake.vim b/home/vim/ftdetect/automake.vim new file mode 100644 index 0000000..5cc73b0 --- /dev/null +++ b/home/vim/ftdetect/automake.vim @@ -0,0 +1,2 @@ +" Use Automake filetype for `local.am` files, explicit `set` to force override +au BufNewFile,BufRead local.am set filetype=automake diff --git a/home/vim/ftdetect/tikz.vim b/home/vim/ftdetect/tikz.vim new file mode 100644 index 0000000..7327b11 --- /dev/null +++ b/home/vim/ftdetect/tikz.vim @@ -0,0 +1,2 @@ +" Use LaTeX filetype for TikZ files +au BufNewFile,BufRead *.tikz setfiletype tex