diff --git a/lua/config/binds.lua b/lua/config/binds.lua index 3d73074..fa9db40 100644 --- a/lua/config/binds.lua +++ b/lua/config/binds.lua @@ -29,6 +29,19 @@ Keymap("i", "", "") -- C-Backscpace for whole words Keymap("n", "d", "lua vim.diagnostic.open_float()") -- Diagnostics for Linter Keymap("n", "gd", "lua vim.lsp.buf.definition()") -- Diagnostics for Linter +-- Terminal Keymaps +Keymap("n", "tj", function() -- open term in new pane + vim.cmd.vnew() + vim.cmd.term() + vim.cmd.startinsert() +end) +Keymap("n", "tk", function() -- open term in new tab + vim.cmd.tabnew() + vim.cmd.term() + vim.cmd.startinsert() +end) +Keymap("t", "", "") -- escape terminal with c-d + -- Flash keymaps Keymap("n", "ss", function() require("flash").jump() diff --git a/lua/plugins/utils/telescope.lua b/lua/plugins/utils/telescope.lua index 32af0ce..4b9b133 100644 --- a/lua/plugins/utils/telescope.lua +++ b/lua/plugins/utils/telescope.lua @@ -22,6 +22,7 @@ require("telescope").setup({ }, n = { [""] = actions.select_drop, + ["d"] = actions.delete_buffer, }, }, },