summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftdetect
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/ftdetect')
-rw-r--r--.config/nvim/after/ftdetect/keyd.vim2
-rw-r--r--.config/nvim/after/ftdetect/xcompose.lua6
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
+})