summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftdetect/nroff.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/ftdetect/nroff.lua')
-rw-r--r--.config/nvim/after/ftdetect/nroff.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/after/ftdetect/nroff.lua b/.config/nvim/after/ftdetect/nroff.lua
new file mode 100644
index 0000000..592f620
--- /dev/null
+++ b/.config/nvim/after/ftdetect/nroff.lua
@@ -0,0 +1,6 @@
+vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
+ pattern = '*.[1-7]',
+ callback = function()
+ vim.bo.filetype = 'nroff'
+ end,
+})