feat: added floating term

This commit is contained in:
alzalia1 2025-08-17 00:10:35 +02:00
parent 4a5f39bd74
commit 459a90f8ab
3 changed files with 12 additions and 60 deletions

View file

@ -1,4 +1,5 @@
require "nvchad.mappings"
local term = require("floatty").setup {}
local map = vim.keymap.set
@ -8,4 +9,13 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
-- i then j&k to escape
map("i", "jk", "<ESC>")
-- see code actions
map("n", "<leader>a", "<cmd>Lspsaga code_action<CR>", { desc = "Display code actions" })
-- toogle terminal
map("n", "<C-t>", function()
term.toggle()
end)
map("t", "<C-t>", function()
term.toggle()
end)