← 피드로
tt (Terminal with Telescope)
LeafChage
/
tt
a telescope extension for multiple terminals
managing terminal with telescope
demo.mp4
How to use
<div dir="auto" data-snippet-clipboard-copy-content="— lazy.nvim { "LeafChage/tt", dependencies = { {'nvim-telescope/telescope.nvim'}, }, config = function() require("tt").setup({ — — current | float | vertical | horizontal — layout: "current" — keys = { — n = { — open = "", — close = "", — }, — i = { — open = "", — close = "", — } — }, — float = { — width = 0.8, — height = 0.8, — border = "rounded", — } }) end, keys = { — { "ft", [[Telescope tt]], }, — open terminal picker } } — load extension local telescope = require(‘telescope’) telescope.load_extension("tt")”>--- lazy.nvim
{
"LeafChage/tt",
dependencies = {
{'nvim-telescope/telescope.nvim'},
},
config = function()
require("tt").setup({
-- --- current | float | vertical | horizontal
-- layout: "current"
-- keys = {
-- n = {
-- open = "<cr>",
-- close = "<c-d>",
-- },
-- i = {
-- open = "<cr>",
-- close = "<c-d>",
-- }
-- },
-- float = {
-- width = 0.8,
-- height = 0.8,
-- border = "rounded",
-- }
})
end,
keys = {
-- { "<leader>ft", [[<CMD>Telescope tt<CR>]], }, -- open terminal picker
}
}
-- load extension
local telescope = require('telescope')
telescope.load_extension("tt")
Enter fullscreen mode Exit fullscreen mode
ToDo
- buffer preview
I had used toggleterm before, but I wanted to use multiple session with telescope.
I made it.💡
This is my first challenge to make neovim plugin.
Please let me know if you have any question:)
추출 본문 · 출처: dev.to · https://dev.to/leafchage/terminal-in-neovim-with-telescope-1cid