我想使用 Nerd Fonts 中的 Unicode 字符对于我在 Xmonad 中的工作区。
myWorkspaces = ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]
供引用:
但是,我在编译时遇到以下错误:
xmonad.hs:191:13: error:
lexical error in string/character literal at character '\62057'
|
191 | ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]
| ^
Please check the file for errors.
Warning: Missing charsets in String to FontSet conversion
是否有机会使用全套 nerd 字体 unicode 字符?我看到其他人在 their config 中使用了 unicode 的一个子集。 .
最佳答案
我想你遇到了 GHC bug #5518 .作为解决方法,尝试使用转义语法(例如,"1:\62057"
或 "1:\xf269"
而不是 "1:"
)。
关于haskell - 为 Xmonad 工作区使用 unicode 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60682325/