Comments (5)
Worked great!
from no-neck-pain.nvim.
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.
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.
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.
@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)
- [bug] buftype incorrectly set for scratch pad HOT 6
- [feature] add support for Symbols Outline HOT 3
- (Help request) How to add custom integrations? (agitator) HOT 3
- Inconsistent resize behavior with window splits HOT 2
- Show opened tabs/buffers in NNP. HOT 2
- heyo, not an issue, what's the thing besides the `fish` and `tmux` thing? that ram thing like htop? HOT 2
- [feature] Option to keep the cursor out of the panel/s HOT 8
- Issue when used with alpha-nvim HOT 5
- The neo-tree integration seems to be broken on small window width HOT 3
- feat: top and bottom windows HOT 2
- Lualine not expanding across whole window, showing "dummy" buffers HOT 3
- Prevent :q from closing NNP? HOT 7
- Doesn't work with persisted.nvim HOT 3
- When using incline.nvim, an error always occurs when I close Neovim HOT 3
- Unable to move the cursor to the main buffer when `skipEnteringNoNeckPainBuffer = true` HOT 2
- Neotree `close_if_last_window` does not work HOT 8
- Areal intergration
- next: feature requests HOT 6
- prevent nvim quitting unsaved buffers - follow up of #348 HOT 8
- NNP is not enabled when running :checkhealth HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from no-neck-pain.nvim.