From 2d917594baa898e2eea0bf4a962c96999b85605b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 17 Aug 2024 21:06:53 +0200 Subject: nvim: Add some more filetype detections --- .config/nvim/after/ftdetect/keyd.vim | 2 ++ .config/nvim/after/ftdetect/xcompose.lua | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 .config/nvim/after/ftdetect/keyd.vim create mode 100644 .config/nvim/after/ftdetect/xcompose.lua diff --git a/.config/nvim/after/ftdetect/keyd.vim b/.config/nvim/after/ftdetect/keyd.vim new file mode 100644 index 0000000..bf4481a --- /dev/null +++ b/.config/nvim/after/ftdetect/keyd.vim @@ -0,0 +1,2 @@ +autocmd BufRead,BufNewFile /etc/keyd/*.conf setfiletype ini +autocmd BufRead,BufNewFile keyd.compose setfiletype xcompose diff --git a/.config/nvim/after/ftdetect/xcompose.lua b/.config/nvim/after/ftdetect/xcompose.lua new file mode 100644 index 0000000..81e6c4a --- /dev/null +++ b/.config/nvim/after/ftdetect/xcompose.lua @@ -0,0 +1,6 @@ +vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, { + pattern = 'xcompose', + callback = function() + vim.bo.filetype = 'xcompose' + end +}) -- cgit v1.2.3