From 098623d35777a826db0793c9284e45e35c141f44 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 6 Aug 2024 18:13:45 +0300 Subject: feat(onfiletype)!: Renamed filetype to onfiletype --- lua/onfiletype.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lua/onfiletype.lua (limited to 'lua/onfiletype.lua') diff --git a/lua/onfiletype.lua b/lua/onfiletype.lua new file mode 100644 index 0000000..c814a3b --- /dev/null +++ b/lua/onfiletype.lua @@ -0,0 +1,9 @@ +--[=[ Terminal buffers ]=]-- + +vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter" }, { + pattern = "term://*", + command = "setlocal nonu | startinsert", +}) +vim.api.nvim_create_autocmd("TermClose", { + command = "quit!" +}) -- cgit v1.3.1-23-gd82d