mirror of
https://github.com/mikkelsvartveit/dotfiles.git
synced 2025-12-22 19:22:38 +00:00
Improve ToggleTerm experience
This commit is contained in:
parent
0886cfc653
commit
e24e93cc5f
1 changed files with 15 additions and 9 deletions
|
|
@ -159,15 +159,21 @@ require("lazy").setup({
|
|||
"akinsho/nvim-toggleterm.lua",
|
||||
tag = "2.4.0",
|
||||
keys = "<C-j>",
|
||||
opts = {
|
||||
config = function()
|
||||
require("toggleterm").setup({
|
||||
size = 20,
|
||||
hide_numbers = true,
|
||||
direction = 'float',
|
||||
open_mapping = [[<C-j>]],
|
||||
shade_terminals = false,
|
||||
shading_factor = -16,
|
||||
shell = 'fish'
|
||||
},
|
||||
shell = 'fish',
|
||||
on_open = function()
|
||||
vim.keymap.set("n", "<Esc>", ":ToggleTerm<CR>", { buffer = true, silent = true })
|
||||
end,
|
||||
})
|
||||
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>")
|
||||
end,
|
||||
},
|
||||
|
||||
-- Run code with a keybinding
|
||||
|
|
|
|||
Loading…
Reference in a new issue