Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dredstone1 opened this issue Oct 17, 2024 · 0 comments

Comments

@dredstone1
Copy link

dredstone1 commented Oct 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant