From: Samir Benmendil Date: Sun, 7 Apr 2024 00:21:15 +0000 (+0100) Subject: nvim: update floating terminal bindings X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/12eebce8793c5058affbc1e150d2aec47aed990d?ds=inline nvim: update floating terminal bindings --- diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 8fa0914..c193f61 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -70,6 +70,6 @@ end -- floating terminal -- TODO: I prefer a split buffer for terminal, need to review how to make this more vim-like -vim.keymap.set("n", "ft", function() Util.float_term(nil, { cwd = Util.get_root() }) end, { desc = "Terminal (root dir)" }) -vim.keymap.set("n", "fT", function() Util.float_term() end, { desc = "Terminal (cwd)" }) -vim.keymap.set("t", "", "", {desc = "Enter Normal Mode"}) +local lazyterm = function() LazyVim.terminal(nil, { cwd = LazyVim.root() }) end +vim.keymap.set("n", "ft", lazyterm, { desc = "Terminal (Root Dir)" }) +vim.keymap.set("n", "fT", function() LazyVim.terminal() end, { desc = "Terminal (cwd)" })