Skip to content

justamanpop/strike-through.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

strike-through.nvim

Very minimal neovim plugin that is used to toggle the strike through effect on text.

It achieves this by adding a long stroke overlay unicode (U+0336) after each character

  • toggles strikes through effect for current line of text if in normal mode
  • toggles strikes through for selected text if in visual mode

Showcase

If in normal mode, toggles strike through on current line of text (toggle is triggered using default keymap of <leader>co)

stirke-through-nvim-toggle-2025-07-31_08.57.52.mp4

If in visual mode, toggles strike through on selected text (does not work as expected for visual block mode)

stirke-through-nvim-visual-mode-toggle-2025-07-31_09.34.00.mp4

If selected text or current line has some strike-through text and some normal-text, converts entire line into non strike through text

stirke-through-nvim-partial-toggle-2025-07-31_09.36.00.mp4

Installation

require("lazy").setup({
    "justamanpop/strike-through.nvim"
})

Functions and mappings:

  • Exposes two functions ToggleStrikeThrough (to toggle current line in normal mode) and ToggleStrikeThroughVisual (to toggle visual selection)
  • Sets up a default mapping of "<leader>co" (co = cross off) for ToggleStrikeThrough in normal mode and ToggleStrikeThroughVisual in visual and block visual mode

About

Very minimal neovim plugin that lets you cross out and uncross the current line of text

Resources

License

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages