Skip to content

neoclide/wasm-strwidth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wasm-strWidth

Wasm module for string display width on vim.

Used by coc.nvim.

TODO: support setcellwidths() like vim for custom width table.

API

  • setAmbw(ambiguousAsDouble: number): void

    Consider ambiguous as double width when 1

  • strWidth(text: string): number

    Return display width of text.

Build

Requires wasi and wabt.

Change the SDK part in Makefile.

Run command:

make
node index.js

LICENSE

MIT

About

WASM module for text display width

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published