-
Notifications
You must be signed in to change notification settings - Fork 469
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
Bug: Filetype icon for terminal acting weird #1253
Comments
I just tested |
So the problem lies somewhere here: Lines |
Seems like @arsmoriendy already found the same thing and filed a PR: #1252 |
Unfortunately some of my tests failed. One of the reason being that the filetype component test only simulates the buffer's filename and not the filetype (line 303 in |
@arsmoriendy Any updates on this? |
@MarcoBuess Sorry I got busy doing other stuff and forgot about this issue since it was not super important to me anyways. I still need to learn all the testing related lua stuff, in the mean time maybe you can use a custom filetype component, or feel free to create a new PR |
Update: Made some changes in the test file, my PR #1252 is now passing :) |
Self Checks
0a5a668
How to reproduce the problem
Launching a terminal with
term
and thus startingvim.opt.shell
will result in this filetype icon.Expected behaviour
Launching a terminal with
term pwsh
will yield the expected result.I don't quite get the difference other than that
term pwsh
will spawn 2 instances ofpwsh
as oppsed toterm
which will spawn just one instance ofpwsh
. In both casesfiletype
will be set toterminal
by an autocommand. I tried several filetypes in theterm
session, but the icon didn't change. It also behaves the same for me no matter what shell you set. I even triedcmd
.Minimal config to reproduce the issue
Additional information
OS: Windows 11 (10.0.22631)
Neovim: v0.10.0, Release, LuaJIT 2.1.1713484068
lualine:
0a5a668
Terminal: Windows Terminal v1.20.11381.0
The text was updated successfully, but these errors were encountered: