From 511efe89ed084bc922ae142d32e08427859198f4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 10 Jun 2024 23:07:28 +0200 Subject: nvim: Completely rewrite my configuration --- .config/nvim/after/ftdetect/nroff.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .config/nvim/after/ftdetect/nroff.lua (limited to '.config/nvim/after/ftdetect/nroff.lua') 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, +}) -- cgit v1.2.3