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.
- Host: GitHub
- URL: https://github.com/kelvinauta/focushere.nvim
- Owner: kelvinauta
- Created: 2024-11-25T17:31:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-25T21:01:11.000Z (about 1 year ago)
- Last Synced: 2025-01-25T22:39:06.429Z (11 months ago)
- Topics: nvim, nvim-lua, nvim-plugin, vim
- Language: Lua
- Homepage:
- Size: 1020 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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.

# 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