Comments (11)
I solved by mapping <C-C>
-> <C-[>
as a workaround.
from lualine.nvim.
I stand by my point that it's not a lualine issue nor is it your configuration issue. All we are doing in our filetype components is calling vim.fn.expand
functions. My guess is that it's a neovim/vim bug. Go ahead and submit an issue but I think you need to find a real cause of this crash as I suspect they would blame us if you refer a plugin with your ticket.
from lualine.nvim.
Mmm, this looks like it's not an issue with lualine but with the lua nvim api. Can you confirm that CTRL_C
also breaks other lua plugins?
from lualine.nvim.
I haven't tried and don't know how to. Maybe secretly but this one was obvious.
Should I create the issue on https://github.com/neovim/neovim?
from lualine.nvim.
Can you provide more information of how to reproduce it ? It's proving to be really hard to reproduce . If we can find a easier way to reproduce it we can test it on other plugins ..
from lualine.nvim.
I don't know how to reproduce exactly but I collected some key points I realised this issue occurs.
1. ✅ No Problem
- Open
nvim
- Press
i
ora
- Press
CTRL-C
- Go to step 2
2. ✅ No Problem
- Open
nvim
- Press
i
ora
- Type "hello"
- Press
CTRL-C
- Go to step 2
3. ❌ Issue Occurs
- Open an empty python file
nvim x.py
- Press
i
ora
- Press
CTRL-C
- Press
i
ora
one more time (sometimes more than twice) - Press
CTRL-C
- See the status line disappeared and error message printed.
So, I suspect that this is something to do with filetypes or Python specific. I tried other filetypes and saw they are affected too. Here the filetypes I tried
- ❌ Python
- ❌ C
- ❌ C++
- ❌ Rust
I also tested how many times should I go to insert mode and normal mode again to reproduce this issue.
(I counted [i
+CTRL-C
] as 1)
nvim x.cc
: 5, 2, 3, 3, 4, 5, 2, 4, 7...
So, I couldn't see I pattern here.
See Also
from lualine.nvim.
Thanks for the info. In your config I can see you are using separate function for relative paths . But
lualines filename component provides relative path too . You can do
lauline_c = {{'filename', full_path = true}},
You can checkout Component options for details :)
from lualine.nvim.
Thank you, but I also have the filename blocking mechanism for terminal buffers in that function.
from lualine.nvim.
I suspect they would blame us if you refer a plugin with your ticket.
Not true . The neovim guys are pretry cool . I had mentioned this issue on neovim gitter . This issue needs better way of reproduceing if the cause is ever to be found . After aton of attempts I was only able to make it happen twice . Also it just happens randomly . Trying aton of times the same thing and wating for a bug to affect is npt realistic to do . Also I was actualy gona ask @ihsanturk are you using current master of neovim? I'm using current master and this issue almost naver happens . If you're using an old version can you try current master maybe this has been partialy solved already :)
from lualine.nvim.
I am using v0.5.0-dev
. I will try master
.
Thanks.
from lualine.nvim.
I'm using nightly builds and this happens about once every hour for me. I cannot find a way to reliably reproduce.
from lualine.nvim.
Related Issues (20)
- Bug: flickering / blinking when `globalstatus = true` HOT 1
- docs: typo on wiki HOT 1
- Bug: Icons show white separator HOT 1
- Bug: on_click option not working in components 'buffers' and 'tabs'
- Feat: Ability to use extensions in winbars and tabline
- Question how to not override DAP UI control buttons? HOT 6
- Bug: Invalid window ID HOT 9
- Bug: evil_lualine little padding...
- Bug: fugitive extension sets statusline but not tabline
- Bug: globalstatus attribute display error
- Bug: Git diff doesn't work if file name contains spaces
- Feat: Optimize counting of diagnostics with new `vim.diagnostic.count()` (nvim 0.10+)
- Bug: quickfix extension crashes on %
- Bug: Lualine configurations are not applied HOT 2
- Bug: Hitting <C-l> does not immediately clear results from searchcount component
- Bug: q! is very slowly
- Bug: fugitive file is same as normal file if path=0
- Bug: Filetype icon for terminal acting weird HOT 7
- Feat: branch to show string instead of disabling HOT 2
- Feat: statusline showing a straight line HOT 3
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 lualine.nvim.