jdhao / nvim-config

A modern Neovim configuration with full battery for Python, Lua, C++, Markdown, LaTeX, and more...
MIT License
3.44k stars 507 forks source link

fix language selector error in Android (termux) user #134

Closed c0del1ar closed 1 year ago

c0del1ar commented 1 year ago

This is fixed error for language selection on Android (termux) users

jdhao commented 1 year ago

I thought UTF-8 and utf-8 make no difference, the library will normalize the case internally. NO?

P.S. Are you really using this config on Android? There are several dependencies that I am not sure can work in termux.

c0del1ar commented 1 year ago

I thought UTF-8 and utf-8 make no difference, the library will normalize the case internally. NO?

P.S. Are you really using this config on Android? There are several dependencies that I am not sure can work in termux.

No, it isn't.

I have already tested it in termux Android. it works normally (although there are some unreadable libs maybe but no error message on configuration) except that language string. it should be "UTF-8" read from terminal 'local' environment vars.

I made this change because many people use neovim on termux Android.

jdhao commented 1 year ago

I am not sure if you can install all dependencies of this config on termux, and I do not use termux personally. If this is only about language setting, maybe I can change it to UTF-8, on macOS, the case makes no difference.

c0del1ar commented 1 year ago

oh yeah.. if you talking about the all of dependencies, i don't know that if it can run or not. because the major of dependencies is totally works for me(only the gui vim it can't run). i can help with termux configuration.

Screenshot_20221008_231018

it just not only the language setting. I did a little more configuration on the other files.

jdhao commented 1 year ago

I am not inclined to include support for android as I do not use it. But I can change the language settings if UTF-8 also works on Windows. Does that work for you?

c0del1ar commented 1 year ago

No need, I used arch btw, totally works.