how to replace the dashboard button desc to chinese? #1779
Replies: 2 comments 1 reply
-
|
I judged that this problem was caused by the problem in lua language when taking the length of a string, because Chinese is a variable-length character, which led to incorrect judgment and may need to be solved in the dashboard plug-in. |
Beta Was this translation helpful? Give feedback.
-
|
I use Linux, it works. here is my test ~/.config/nvim/lua/plugins/dashboard.lua. I guess your problem is the wrong format of plugin file.(missing return, plugin name, and end brace) and it is better separate the two plugins content into two files. What I do is copy & paste the content of LazyVim.org Plugins/UI/dashboard-nvim/options like this way Here is the full file content. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i replaced the dashboad/opts/config/center/desc to chinese then it shown

if i change the chinese word to english,it works normally.
my config like this :
.config/nvim/lua/plugins/dashboard.lua
Beta Was this translation helpful? Give feedback.
All reactions