From 368d0f90400e9fe1d2d4dfe2fea583e54561057e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 16 Oct 2023 12:09:47 +0200 Subject: remapped return to follow link --- config/essentials/nvim/lua/user/remap.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'config/essentials/nvim/lua') diff --git a/config/essentials/nvim/lua/user/remap.lua b/config/essentials/nvim/lua/user/remap.lua index c50d346..e194ffa 100644 --- a/config/essentials/nvim/lua/user/remap.lua +++ b/config/essentials/nvim/lua/user/remap.lua @@ -79,13 +79,13 @@ vim.keymap.set("n", "P", "PackerSync", { noremap = true }) -- spelling vim.keymap.set("n", "", "setlocal spell!", { noremap = true }) --- open terminal in file's parent director --- this needs to be asynchrous -vim.keymap.set("n", "", function () - local cmd = "cd " .. vim.fn.expand("%:p:h") .. "; setsid $TERMINAL" - -- asynchrous go brr - vim.fn.jobstart(cmd, { on_exit = function(job_id, exit_code, event_type) end }) -end, { noremap = true }) +-- -- open terminal in file's parent director +-- -- this needs to be asynchrous +-- vim.keymap.set("n", "", function () +-- local cmd = "cd " .. vim.fn.expand("%:p:h") .. "; setsid $TERMINAL" +-- -- asynchrous go brr +-- vim.fn.jobstart(cmd, { on_exit = function(job_id, exit_code, event_type) end }) +-- end, { noremap = true }) -- clear registers -- cgit v1.2.3