Skip to content

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

Notifications You must be signed in to change notification settings

kelvinauta/focushere.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

FocusHere

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

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

{
    "kelvinauta/focushere.nvim",
    config = function ()
       require("focushere").setup()
        -- Optional KeyMap
        vim.keymap.set("v","zf" , ":FocusHere<CR>" , {noremap=true, silent=true})
        vim.keymap.set("n","zf" , ":FocusClear<CR>" , {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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages