DEV Community

LeafChage
LeafChage

Posted on

Terminal in Neovim with telescope

tt (Terminal with Telescope)

GitHub logo LeafChage / tt

a telescope extension for multiple terminals

managing terminal with telescope

demo.mp4

How to use

--- 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:)

Top comments (0)