diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-16 12:09:47 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-16 12:09:47 +0200 |
commit | 368d0f90400e9fe1d2d4dfe2fea583e54561057e (patch) | |
tree | 0a474cdefc4dda22e7c9f1b5b326f2aa5a264cc5 /config/essentials/nvim/lua/user | |
parent | 4ca15dd82c255dfad7e4cf5a347b971f97a0bfed (diff) |
remapped return to follow link
Diffstat (limited to 'config/essentials/nvim/lua/user')
-rw-r--r-- | config/essentials/nvim/lua/user/remap.lua | 14 |
1 files changed, 7 insertions, 7 deletions
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", "<Leader>P", "<cmd>PackerSync<cr>", { noremap = true }) -- spelling vim.keymap.set("n", "<Leader><C-s>", "<cmd>setlocal spell!<cr>", { noremap = true }) --- open terminal in file's parent director --- this needs to be asynchrous -vim.keymap.set("n", "<Return>", 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", "<Return>", 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 |