Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/nyngwang/NeoClear.lua

save you from the "what the hell?" moment
https://github.com/nyngwang/NeoClear.lua

Last synced: 11 days ago
JSON representation

save you from the "what the hell?" moment

Lists

README

        

NeoClear.lua
-----

## deprecated: the upstream problem has been fixed: https://github.com/neovim/neovim/issues/14977.

Save you from both:
- the tree-sitter bug on folding, see: https://github.com/nvim-treesitter/nvim-treesitter/issues/2439
- the "how to clear the last highlight qq" problem

## DEMO

https://user-images.githubusercontent.com/24765272/152267526-7ebe6876-cf89-40ed-ae64-f639153eeefe.mov

## Features

- Only one command, since this is a temporary patch.
- Can be run on "un-saved" buffer without error(as `silent!`)
- but you need to leave your buffer unmodified(save or undo, like the DEMO) before running `NeoClear` to solve the first problem.
- Leave window-view intact after run.

## Usage

```lua
NeoClear
```

example

```lua
vim.keymap.set('n', '', function()
vim.cmd('NeoClear')
end, { noremap = true, silent = true, nowait = true })
```