add floatterm
This commit is contained in:
parent
0dafad8864
commit
41547f9fa6
2 changed files with 8 additions and 3 deletions
|
@ -24,7 +24,7 @@ vim.opt.splitright = true
|
||||||
if (vim.loop.os_uname().sysname == "Linux")
|
if (vim.loop.os_uname().sysname == "Linux")
|
||||||
then
|
then
|
||||||
vim.opt.shell = "zsh"
|
vim.opt.shell = "zsh"
|
||||||
else
|
else
|
||||||
vim.opt.shell = "pwsh"
|
vim.opt.shell = "pwsh"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
|
@ -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, {})
|
||||||
|
|
Loading…
Reference in a new issue