feat: added floating term
This commit is contained in:
parent
4a5f39bd74
commit
459a90f8ab
3 changed files with 12 additions and 60 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue