Skip to content

Commit 51cfb08

Browse files
authored
feat(neovim): vim-floaterm: Terminal manager for (neo)vim (#48)
## Terminal manager for (neo)vim Source: https://github.com/voldikss/vim-floaterm ![91380268-2cd24d00-e857-11ea-8dbd-d39a0bbb105e](https://github.com/user-attachments/assets/7fe56071-2eab-4f37-a4bc-f06ec183ea52) ### Features ✨ - Manage multiple terminal instances - Customizable terminal window style - Switch/preview floating terminal buffers using fuzzy-finder plugins such as [denite.nvim](https://github.com/Shougo/denite.nvim) or [fzf](https://github.com/junegunn/fzf), etc. - Use with other external command-line tools(ranger, fzf, ripgrep etc.) - Use as a custom task runner for [asynctasks.vim](https://github.com/skywind3000/asynctasks.vim) or [asyncrun.vim](https://github.com/skywind3000/asyncrun.vim) #### Keybindings ⌨️ - new term: `<leader>nt`: New Term - toggle floaterm: `<leader>tt`: Toggle Term #### Install dependencies 📦 : - `pip3 install neovim-remote` to allow floaterm to open windows inside neovim. ### REFERENCES 📚 : [Youtube Video: Vim Plugin Highlight: floaterm! Floating terminals!](https://youtu.be/QzlwC-AUY-U?si=cDlvadhVSd3VcxeM)
1 parent f885211 commit 51cfb08

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

nvim/lua/plugins/floaterm.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
return {
2+
"voldikss/vim-floaterm",
3+
lazy = false,
4+
config = function()
5+
-- Você pode adicionar configurações aqui, se necessário.
6+
-- Por exemplo, para definir opções globais:
7+
vim.g.floaterm_width = 0.8
8+
vim.g.floaterm_height = 0.8
9+
vim.g.floaterm_position = "center"
10+
vim.g.floaterm_auto_close = 1
11+
12+
-- Mapeamento de teclado para abrir/fechar o Floaterm
13+
vim.keymap.set("n", "<Leader>nt", ":FloatermToggle<CR>", { desc = "Toggle Floaterm" })
14+
vim.keymap.set("n", "<Leader>tt", ":FloatermToggle<CR>", { desc = "Toggle Floaterm" })
15+
end,
16+
dependencies = {
17+
"nvim-lua/plenary.nvim", -- Se o plugin tiver dependências
18+
},
19+
}
20+

0 commit comments

Comments
 (0)