From fb26a6d74661eba68b91ff7a24598813793c904a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 5 Aug 2024 14:31:53 +0300 Subject: feat(filetype): Terminal buffers now behave like in vim --- lua/filetype.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lua/filetype.lua (limited to 'lua/filetype.lua') 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!" +}) -- cgit v1.3.1-23-gd82d