diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-17 21:06:53 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-17 21:06:53 +0200 |
commit | 2d917594baa898e2eea0bf4a962c96999b85605b (patch) | |
tree | 6f325d705f0c3d90f7ee56fef73d6d919309eb0e /.config/nvim | |
parent | 805b9c01123e5368a62847021b25b0e3345a26c5 (diff) |
nvim: Add some more filetype detections
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/after/ftdetect/keyd.vim | 2 | ||||
-rw-r--r-- | .config/nvim/after/ftdetect/xcompose.lua | 6 |
2 files changed, 8 insertions, 0 deletions
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 +}) |