diff options
| Commit | fb26a6d74661eba68b91ff7a24598813793c904a (patch) | |
|---|---|---|
| Author | 2024-08-05 14:31:53 +0300 | |
| Committer | 2024-08-05 14:31:53 +0300 | |
| Files | 1e62194b23d0c3e8b45fdebe8ed942774f4c9b88 /lua/filetype.lua | |
| anderson-fb26a6d74661eba68b91ff7a24598813793c904a.tar anderson-fb26a6d74661eba68b91ff7a24598813793c904a.tar.gz anderson-fb26a6d74661eba68b91ff7a24598813793c904a.zip | ||
| Parent | 9abab7c4d5c555b854e5541714ff713b11e41338 (diff) | |
feat(filetype): Terminal buffers now behave like in vim
1 files changed, 8 insertions, 0 deletions
| -rw-r--r-- | lua/filetype.lua | 8 |
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!" +}) |
