Summary Files Commits Branches @commit @diff @stats
path: root / lua / onfiletype.lua
blob: b88f41a92bc6cd93360fc88d2539fa1f46fef5e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--[=[ Terminal buffers ]=]--

vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter" }, {
	pattern = "term://*",
	command = "setlocal nonu | startinsert",
})
vim.api.nvim_create_autocmd("TermClose", {
	command = "quit!"
})

--[=[ Noir file type ]=]--

vim.filetype.add({
	extension = {
		nr = 'rust',
		noir = 'rust',
	},
})