Summary Files Commits Branches @commit @diff @stats
path: root / lua / filetype.lua
diff options
context:
space:
mode:
1 files changed, 8 insertions, 0 deletions
-rw-r--r--lua/filetype.lua8
diff --git a/lua/filetype.lua b/lua/filetype.lua
new file mode 100644
index 0000000..118adfb
--- /dev/null
+++ b/lua/filetype.lua
@@ -0,0 +1,8 @@
+--[=[ Terminal buffers ]=]--
+
+vim.api.nvim_create_autocmd("TermOpen", {
+ command = "setlocal nonu | startinsert"
+})
+vim.api.nvim_create_autocmd("TermClose", {
+ command = "close!"
+})