add floatterm

This commit is contained in:
Sakooooo 2023-08-10 23:18:17 +03:00
parent 0dafad8864
commit 41547f9fa6
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 8 additions and 3 deletions

View file

@ -48,7 +48,8 @@ vim.keymap.set("n", "nsv", ":vsplit<CR>", opts)
vim.keymap.set("n", "nsh", ":split<CR>", opts) vim.keymap.set("n", "nsh", ":split<CR>", opts)
-- terminal -- terminal
vim.keymap.set("n", "<leader>t", ":split<CR> <BAR> :terminal<CR>") --vim.keymap.set("n", "<leader>t", ":split<CR> <BAR> :terminal<CR>")
vim.keymap.set("n", "<leader>t", ":FloatermToggle<CR>")
-- exit terminal with esc -- exit terminal with esc
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", opts) vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", opts)

View file

@ -130,7 +130,11 @@ local plugins = {
end, end,
event = 'VimEnter', event = 'VimEnter',
dependencies = { { 'nvim-tree/nvim-web-devicons' } } dependencies = { { 'nvim-tree/nvim-web-devicons' } }
} },
-- floating terminal, useful to mimic/be better than vscode
'voldikss/vim-floaterm',
} }
require("lazy").setup(plugins, {}) require("lazy").setup(plugins, {})