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

@ -24,7 +24,7 @@ vim.opt.splitright = true
if (vim.loop.os_uname().sysname == "Linux")
then
vim.opt.shell = "zsh"
else
else
vim.opt.shell = "pwsh"
end
@ -48,7 +48,8 @@ vim.keymap.set("n", "nsv", ":vsplit<CR>", opts)
vim.keymap.set("n", "nsh", ":split<CR>", opts)
-- 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
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", opts)

View file

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