Skip to content

plugin dont work for me. with error: "Failed to run config for toggleterm-manager.nvim" #11

@dredstone1

Description

@dredstone1

When I found your plugin(I found it in Reddit) I got excited, but when I add it to my configs it sometimes writes this error message(when i start neovim):
image

when i write ":lua require("toggleterm-manager").open({})" it throw this error:
image

when I write "Telescope toggleterm_manager" it throws this error:
image

This is my current toggleterm-manager.lua file:

return {
    "ryanmsnyder/toggleterm-manager.nvim",
    dependencies = {
        "akinsho/nvim-toggleterm.lua",
        "nvim-telescope/telescope.nvim",
        "nvim-lua/plenary.nvim", -- only needed because it's a dependency of telescope
    },
    config = true,
}

this is my toggleterm.lua file:

return {
    'akinsho/toggleterm.nvim',
    version = "*",

    config = function()
        require('toggleterm').setup {
            size = function(term)
                if term.direction == "horizontal" then
                    return 15
                elseif term.direction == "vertical" then
                    return vim.o.columns * 0.4
                end
            end,
            open_mapping = [[<c-\>]],

            hide_numbers = true,   -- hide the number column in toggleterm buffers
            autochdir = false,     -- when neovim changes its current directory the terminal will change its own when next it's opened
            start_in_insert = true,
            persist_mode = true,   -- when the term is closed it will not lose its state
            shell = vim.o.shell,   -- change the default shell
            close_on_exit = false, -- close the terminal window when the process exits

            auto_scroll = true,    -- auto scroll when new output is generated

            shade_terminals = true,

            persist_size = true,
            direction = 'horizontal',
            float_opts = {
                border = 'single',
                width = 150,
                height = 40,
                winblend = 3,
            },

            winbar = {
                enabled = false,
                name_formatter = function(term) --  term: Terminal
                    return term.name
                end
            }
        }
  end
}

I'm using windows.
the toggleterm is working.

I want to add that I just started neovim 2 weeks ago, so I still learning a lot of things

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions