From 165d9a4b3641ebffacf03f725a5838378c969e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sun, 10 Nov 2024 17:18:29 +0100 Subject: [PATCH] start with terminal open --- lua/zak/init.lua | 1 + lua/zak/session.lua | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 lua/zak/session.lua diff --git a/lua/zak/init.lua b/lua/zak/init.lua index 18e19fa..4b37a91 100644 --- a/lua/zak/init.lua +++ b/lua/zak/init.lua @@ -1,3 +1,4 @@ require("zak.remap") require("zak.plugins") require("zak.set") +require("zak.session") diff --git a/lua/zak/session.lua b/lua/zak/session.lua new file mode 100644 index 0000000..02ea1a2 --- /dev/null +++ b/lua/zak/session.lua @@ -0,0 +1,7 @@ +-- Define a custom shortcut that runs when Neovim starts +vim.api.nvim_create_autocmd("UIEnter", { + callback = function() + vim.cmd("vsplit | terminal") + vim.cmd("wincmd l") + end, +})