Summary Files Commits Branches @commit @diff @stats
path: root / nvim / .nvim / lua / onfiletype.lua
diff options
context:
space:
mode:
1 files changed, 6 insertions, 0 deletions
-rw-r--r--nvim/.nvim/lua/onfiletype.lua6
diff --git a/nvim/.nvim/lua/onfiletype.lua b/nvim/.nvim/lua/onfiletype.lua
new file mode 100644
index 0000000..efa69ac
--- /dev/null
+++ b/nvim/.nvim/lua/onfiletype.lua
@@ -0,0 +1,6 @@
+--[=[ Terminal buffers ]=]--
+
+vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter" }, {
+ pattern = "term://*",
+ command = "setlocal nonu | startinsert",
+})