Skip to content

Neovim plugin to highlight current word/file path under the cursor. File path can be opened directly via key shortcut.

License

Notifications You must be signed in to change notification settings

elfenpiff/nvim-word-highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim-word-highlight is a neovim plugin to highlight current word under the cursor in the file. If the current word is an existing file path it can be opened directly via a key shortcut.

Installation

  • vim-plug
    call plug#begin()
        Plug 'elfenpiff/nvim-word-highlight'
    call plug#end()

Getting Started

After the installation the current word should be highlighted in the current buffer. If it is an existing local path the file can be opened with <leader> a.

Configuration

Key binding

  • open the file under the cursor.
    nnoremap <leader>a :OpenPathUnderCursor<CR>

Custom colors

  • word highlight by defining NvimWordHighlight.

    hi NvimWordHighlight guifg=green guibg=none gui=bold
  • path highlight by defining 'NvimWordHighlightPath'.

    hi NvimWordHighlightPath guifg=blue guibg=none gui=bold

About

Neovim plugin to highlight current word/file path under the cursor. File path can be opened directly via key shortcut.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published