Summary Files Commits Branches @commit @diff @stats
path: root / lua / filetype.lua
blob: 9f7e2b3f2df59abf80d2992ebcfa40cd5a472def (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--[=[ Terminal buffers ]=]--

vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter" }, { callback = function (ev)
	if vim.bo.buftype == "terminal" then
		vim.wo.number = false
		vim.cmd("startinsert")
	end
end })
vim.api.nvim_create_autocmd("TermClose", {
	command = "quit!"
})