diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-03 15:44:17 +0100 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-03 18:00:39 +0100 | 
| commit | 8d993a1f56e884f6fa3417913e280de7f024d767 (patch) | |
| tree | 86299d0e9f8dd1958c744c306b2bc5c56a5c6377 /config/essentials | |
| parent | 9dae6d20700a6538717ec498831c6428ea3d764d (diff) | |
added pantran nvim plugin
Diffstat (limited to 'config/essentials')
| -rw-r--r-- | config/essentials/nvim/lua/tlast/packer.lua | 1 | ||||
| -rw-r--r-- | config/essentials/nvim/lua/tlast/remap.lua | 10 | 
2 files changed, 10 insertions, 1 deletions
diff --git a/config/essentials/nvim/lua/tlast/packer.lua b/config/essentials/nvim/lua/tlast/packer.lua index ccba4eb..0236814 100644 --- a/config/essentials/nvim/lua/tlast/packer.lua +++ b/config/essentials/nvim/lua/tlast/packer.lua @@ -34,6 +34,7 @@ return require('packer').startup(function(use)  	use('renerocksai/calendar-vim')  	use('LordTlasT/live-server')  	use('ojroques/vim-oscyank', {branch = "main"}) +	use("potamides/pantran.nvim")  	-- objects  	use('michaeljsmith/vim-indent-object') diff --git a/config/essentials/nvim/lua/tlast/remap.lua b/config/essentials/nvim/lua/tlast/remap.lua index bfbf384..762ebc0 100644 --- a/config/essentials/nvim/lua/tlast/remap.lua +++ b/config/essentials/nvim/lua/tlast/remap.lua @@ -80,4 +80,12 @@ vim.keymap.set("n", "<Leader>P", "<CMD>PackerSync<CR>")  vim.keymap.set("n", "<Leader><C-s>", "<CMD>setlocal spell!<CR>")  -- open terminal in file's parent director -vim.keymap.set("n", "<Return>", "<CMD>silent !cd %:p:h && $TERMINAL<CR>") +-- this needs to be asynchrous +vim.keymap.set("n", "<Return>", function () +    local cmd = "cd " .. vim.fn.expand("%:p:h") .. "; st" +    vim.fn.jobstart(cmd, { +        on_exit = function(job_id, exit_code, event_type) +            -- Do nothing here +        end +    }) +end)  | 
