From 31e5a8ab1c82671c2782c6bfae1fe01da7fea719 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Tue, 17 Sep 2024 11:58:08 +0300 Subject: feat(onfiletype): Make .nr and .noir files be Rust file type --- lua/onfiletype.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lua/onfiletype.lua') diff --git a/lua/onfiletype.lua b/lua/onfiletype.lua index c814a3b..b88f41a 100644 --- a/lua/onfiletype.lua +++ b/lua/onfiletype.lua @@ -7,3 +7,12 @@ vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter" }, { vim.api.nvim_create_autocmd("TermClose", { command = "quit!" }) + +--[=[ Noir file type ]=]-- + +vim.filetype.add({ + extension = { + nr = 'rust', + noir = 'rust', + }, +}) -- cgit v1.3.1-23-gd82d