diff options
| Commit | 098623d35777a826db0793c9284e45e35c141f44 (patch) | |
|---|---|---|
| Author | 2024-08-06 18:13:45 +0300 | |
| Committer | 2024-08-06 18:13:45 +0300 | |
| Files | d94df8c7b0cb6349be299ee9b664f763174fc895 /lua/onfiletype.lua | |
| anderson-098623d35777a826db0793c9284e45e35c141f44.tar anderson-098623d35777a826db0793c9284e45e35c141f44.tar.gz anderson-098623d35777a826db0793c9284e45e35c141f44.zip | ||
| Parent | c5a0d509fdc981ca9b34a641db88a47959a66b7a (diff) | |
feat(onfiletype)!: Renamed filetype to onfiletype
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | lua/onfiletype.lua | 9 |
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!" +}) |
