From cba5dfe41933a2b8c37fb5e993f76563d971e244 Mon Sep 17 00:00:00 2001 From: noelevans Date: Mon, 8 Apr 2024 08:15:15 +0100 Subject: [PATCH] Show more of available options for highlighting Show default values for most cursorword settings and fg / bg colors to highlight - another use case of the plugin. Reference to underlying nvim api call which has even more options available. --- README.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ffba607..a124460 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ https://user-images.githubusercontent.com/42740055/163586272-17560f83-9195-4cb4- Install with your favorite plugin manager. -## Usage +## Default settings ```lua require('nvim-cursorline').setup { @@ -31,6 +31,39 @@ require('nvim-cursorline').setup { } ``` +## Options for block highlighting + +```lua +require('nvim-cursorline').setup { + cursorline = { + enable = false, + }, + cursorword = { + enable = true, + min_length = 1, + hl = { + underline = false, + fg = "#c0caf5", + bg = "#565f89", + sp = nil, + blend = 0, + bold = false, + standout = false, + underline = false, + undercurl = false, + underdouble = false, + underdotted = false, + underdashed = false, + strikethrough = false, + italic = false, + reverse = false, + nocombine = false, + }, + } +} +``` +Most of the cursorword options are shown above. See a complete list of properties that can be set for `val` in the Neovim documentation: https://neovim.io/doc/user/api.html#nvim_set_hl(). + ## Acknowledgments Thanks goes to these people/projects for inspiration: