From bf0db95c1943d1d9b064e124832770afca040181 Mon Sep 17 00:00:00 2001 From: Adang23 <122211611+Adang23@users.noreply.github.com> Date: Thu, 14 Sep 2023 09:11:06 -0400 Subject: [PATCH] Update init.lua --- lua/custom/plugins/init.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..e849cd19 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -1,5 +1,17 @@ -- You can add your own plugins here or in other files in this directory! -- I promise not to create any merge conflicts in this directory :) --- + +vim.cmd('set autochdir') +-- custom/plugins/keymappings.lua + +-- Function to set up your custom keymappings +local function setup_keymappings() + -- Map t to open a terminal in a vertical split on the right + vim.api.nvim_set_keymap('n', 't', ':vsplit | wincmd l | terminal', { noremap = true, silent = true }) +end + +-- Call the function to set up your keymappings +setup_keymappings() + -- See the kickstart.nvim README for more information return {}