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

https://github.com/kelvinauta/focushere.nvim

Nvim Plugin: FocusHere allows the highlight to only work on the code or text fragment you want to focus on.
https://github.com/kelvinauta/focushere.nvim

nvim nvim-lua nvim-plugin vim

Last synced: 9 months ago
JSON representation

Nvim Plugin: FocusHere allows the highlight to only work on the code or text fragment you want to focus on.

Awesome Lists containing this project

README

          

# FocusHere
FocusHere allows the highlight to only work on the code or text fragment you want to focus on.
![Demo FocusHere](demo.gif)
# Why
The Zen Mode plugins are good options, but sometimes I just want to focus on one text over others without entering Zen mode.
And the truth is, I don't know if nvim already has a native function for this lol

# Requeriments
i dont know my nvim is 0.10.1

# LazyVim Install
```lua
{
"kelvinauta/focushere.nvim",
config = function ()
require("focushere").setup()
-- Optional KeyMap
vim.keymap.set("v","zf" , ":FocusHere" , {noremap=true, silent=true})
vim.keymap.set("n","zf" , ":FocusClear" , {noremap=true, silent=true})
end
}
```
# Functions
- `:FocusHere`: (visual mode) highlight only in this area
- `:FocusClear`: (normal) Restore Normal highlight

# Future Features
If this repo reaches 20 stars:
- AutoMarks (customize in focus)
- Multi Focus in the same buffer
- Persistant Focus