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: about 2 months ago
JSON representation
save you from the "what the hell?" moment
- Host: GitHub
- URL: https://github.com/nyngwang/NeoClear.lua
- Owner: nyngwang
- Archived: true
- Created: 2022-02-03T00:29:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T14:34:01.000Z (over 1 year ago)
- Last Synced: 2024-06-17T15:51:46.082Z (3 months ago)
- Language: Lua
- Size: 10.7 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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 })
```