GithubHelp home page GithubHelp logo

Comments (6)

romgrk avatar romgrk commented on May 18, 2024 1

Found it, custom setf terminal was conflicting with toggleterm's filetype.

from toggleterm.nvim.

akinsho avatar akinsho commented on May 18, 2024

Hi @romgrk, do you have set hidden on in your config? if not this is one known thing that causes this issue. If you do already use that but are still seeing this can you try a minimal config with just this plugin and see if it still causes this issue

from toggleterm.nvim.

romgrk avatar romgrk commented on May 18, 2024

Not reproducible with minimal config. Any idea what kind of issue might be causing this?

from toggleterm.nvim.

akinsho avatar akinsho commented on May 18, 2024

@romgrk do you have an terminal related autocommands? I previously encountered this in #25 I think, the issue there being that that person didn't have set hidden on which meant when the terminal was being hidden it was being disposed of so every time it was triggered it wouldn't find the previous one.

In your screenshots it's appears to be trying to recreate terminal 1 each time, so it mustn't be finding it. Can you try toggling one terminal open, then running require('toggleterm.terminal').get_all() should return the map of all terminals. If it's empty then that would explain why the second toggle is creating a new term but not sure why the terminal wouldn't be being saved on open.

from toggleterm.nvim.

romgrk avatar romgrk commented on May 18, 2024

It's the same terminal, but shown in two separate windows, changes in one are reflected in the other window. I'll debug further later, unless you have any other guesses as to what might be the cause.

Here is the output:
Screenshot from 2021-05-10 10-54-10

from toggleterm.nvim.

akinsho avatar akinsho commented on May 18, 2024

No nothing off the top of my head other than I think something else must be set somewhere i.e. a vim setting I'm not thinking of or an autocommand, sorry no immediate ideas/suggestions other than the classic binary settings search

from toggleterm.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.