Open sei40kr opened 2 years ago
i'm not sure this should be implemented here, maybe plugin authors using this could manage it themselves ? So just a documentation improvement would be needed ?
@kyazdani42 Sorry for my late repsonse.
I think it should be implemented here.
I noticed Vim already have setcellwidths() to set the cell widths of specific unicode characters. And recently same feature has been merged to Neovim upstream in neovim/neovim#19686.
So in the near future, we can provide the default cell width for each icon easily using setcellwidths()
, like vim-ambiwidth does.
I want an option to tell Neovim what to do with East Asian Width Class Ambiguous.
Neovim already has
ambiwidth
option but it's unstable since it applies to all the characters in Neovim.I've already implemented this in my dotfiles, so I want to port this to upstream. ~https://github.com/sei40kr/dotfiles/blob/master/config/neovim/lua/config/plugins/nvim-web-devicons.lua#L14-L18~ https://github.com/sei40kr/yonvim/blob/main/lua/yvim/plugin/web-devicons.lua