GithubHelp home page GithubHelp logo

Comments (5)

BerkeleyTrue avatar BerkeleyTrue commented on July 24, 2024 1

Worked great!

from no-neck-pain.nvim.

shortcuts avatar shortcuts commented on July 24, 2024

Thanks for testing the plugin!

Instead I see my dashboard quickly pushed to the right and I'm left with an empty buffer. Further file openings show no NNP.

I'll try to reproduce, was it by manually toggling NNP or with the VimEnter hook?

from no-neck-pain.nvim.

BerkeleyTrue avatar BerkeleyTrue commented on July 24, 2024

It was the VimEnter hook.

Maybe I can exclude no name buffers from augroup pattern?

edit:

I added a conditional to check for no named buffers. This prevents it from starting if I open vim without a file to read. This prevents the issue but I still have to manually start NNP after the dashboard.

I tried BufEnter as the hook, but then it created an infinite recursion of buffers.

Maybe adding a check in the "BufWinEnter" autocmd for "buf_get_name() == ''" would prevent the issue with Dashboard.

from no-neck-pain.nvim.

shortcuts avatar shortcuts commented on July 24, 2024

Did some investigation and realized dashboard-nvim does not support split/vsplit on the dashboard buffer, so indeed we can't trigger NNP from there.

I'll try to find a hook that can trigger on BufWinEnter without causing infinite calls, thanks for the information!

Maybe adding a check in the "BufWinEnter" autocmd for "buf_get_name() == ''" would prevent the issue with Dashboard.

I'm afraid it would impact all no-named buffers, I see this check on their side that would maybe be reusable:

https://github.com/glepnir/dashboard-nvim/blob/master/lua/dashboard/events.lua#L67-L69

from no-neck-pain.nvim.

shortcuts avatar shortcuts commented on July 24, 2024

@BerkeleyTrue feel free to give a try at the new snippet, it should cover the dashboard case!

from no-neck-pain.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.