Use Snacks terminal
The LazyVim terminal is deprecated
This commit is contained in:
@@ -1,18 +1,17 @@
|
|||||||
-- Keymaps are automatically loaded on the VeryLazy event
|
-- Keymaps are automatically loaded on the VeryLazy event
|
||||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
local Util = require("lazyvim.util")
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>H", function()
|
vim.keymap.set("n", "<leader>H", function()
|
||||||
Util.terminal({ "clx" })
|
Snacks.terminal({ "clx" })
|
||||||
end, { desc = "Toggle clx (console HackerNews) floating terminal" })
|
end, { desc = "Toggle clx (console HackerNews) floating terminal" })
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>dd", function()
|
vim.keymap.set("n", "<leader>dd", function()
|
||||||
Util.terminal({ "lazydocker" }, { esc_esc = false, ctrl_hjkl = false })
|
Snacks.terminal({ "lazydocker" }, { esc_esc = false, ctrl_hjkl = false })
|
||||||
end, { desc = "Toggle lazydocker (console Docker Desktop) floating terminal" })
|
end, { desc = "Toggle lazydocker (console Docker Desktop) floating terminal" })
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>B", function()
|
vim.keymap.set("n", "<leader>B", function()
|
||||||
Util.terminal({ "btop" }, { esc_esc = false, ctrl_hjkl = false })
|
Snacks.terminal({ "btop" }, { esc_esc = false, ctrl_hjkl = false })
|
||||||
end, { desc = "Toggle btop (improved console top monitor) floating terminal" })
|
end, { desc = "Toggle btop (improved console top monitor) floating terminal" })
|
||||||
|
|
||||||
-- Allow Cmd+V pasting on mac
|
-- Allow Cmd+V pasting on mac
|
||||||
|
|||||||
Reference in New Issue
Block a user