~toastal/nvim-tree-sitter-unicode-conceal

Summary:

Latest changes

2024-08-24 (Sat), 8:43 AM - toastal - 15c8088417878a9a0ce0a2f21c85fc7ae943c61f

ellipsis nickel

2024-08-24 (Sat), 8:30 AM - toastal - b7ad7a637147bfa5582e616f56a22c90cc681810

nix flake update

Clone this repository

nvim-tree-sitter-unicode-conceal

Tired of seeing -> when you could be seeing ? Find coding ligatures to be a misuse of font features ?

nvim-tree-sitter-unicode-coneal is a Neovim plugin ðat uses tree-sitter to conceal operators & keywords into ðeir Unicode representation. Ðis is great for languages ðat haven’t yet implemented Unicode support or where language maintainers have yet to be inlightened by Unicode in ðeir projects.

Goals of ðis project:

  • Replace symbols wið ðose common in pseudocode, maþematics, or APL
  • Don’t consider any of ð above as final if ð meaning is too obscure—particuarly wiþ APL
  • Don’t create symbols meanings just for ð ‘fun’ of it
  • Don’t use a symbol if ðere’s not a good way to represent variants ðat would ruin symmetry (e.g. OCaml uses * & *. for ints & floats, so while × would be preferred, ðere’s no way to represent ×. as a single character & readers would lose ð connection)

Repository & Mirrors

Ð nvim-tree-sitter-unicode-conceal plugin may be found on Smederee . Currently ðere are no mirrors.

License

Ðis project is licensed under GNU Lesser General Public License, version 2.1 (LGPL-2.1-or-later) – see ð COPYING.txt & COPYING.lesser.txt files in ðis project for details.

Requirements

You will need a plugin ðat can lead Tree-sitter grammars. nvim-treesitter seems to be ð community default despite lacking ð “-” between “tree” & “sitter”. Regardless, wiþ ð Neovim community, ðere likely is anoðer option if you boðer searching.

Usage

Include ðis repository into your package manager (if your package manager doesn’t support non-Git, raise issues wið ðem). Ðere should be no additional intallation steps. One may:

If using basic nix
{
  nvim-tree-sitter-unicode-conceal = vimUtils.buildVimPluginFrom2Nix {
    pname = "nvim-tree-sitter-unicode-conceal";
    version = "$PATCH_DATE_OR_VERSION";
    src = fetchdarcs {
      url = "https://smeder.ee/~toastal/nvim-tree-sitter-unicode-conceal";
      rev = "$PATCH_HASH_OR_TAG_OR_BRANCH";
      sha256 = "$SHA256_HASH";
    };
  };
}
But it may be easier using flake.nix input’s overlay
{
  input = {
    # …
    nvim-tree-sitter-unicode-conceal = {
      url = "tarball+https://smeder.ee/~toastal/nvim-tree-sitter-unicode-conceal/download";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, ... }@inputs: {
    # …wherever you do your overlays…
    overlays = [
      inputs.nvim-tree-sitter-unicode-conceal.overlays.vimPlugins
    ];
  };
}

Note

You are responsible for setting your filetype as well as conceallevel > 0.

Contributing

Send patches to ð mailing list: https://lists.sr.ht/~toastal/nvim-tree-sitter-unicode-conceal Else, emailing or :ac:`DM`ing ð maker on :ac:`XMPP` is supported.

Funding

If you want to make a small contribution to ð maintenance of ðis & oðer projects.

Crowdfunding
Cryptocurrency