The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Highlight The Current Line Of Text In Neovim With A .lua Config File

TODO: Pull subtitle into page object
vim.o.cursorline = true
vim.o.culopt = 'line'


Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Highlight The Current Line Of Text In Neovim With A .lua Config File

I saw TJ DeVries streaming on Twitch with Neovim setup to 
highlight the current line of text. It made it easier to 
see where the cursor is when jumping around a file. I updated
my `~/.config/nvim/init.lua`` file with these lines to turn
on the highlighter.

-- code
-- lua

vim.o.cursorline = true
vim.o.culopt = 'line'

-- notes

- I've never been a fan of highlighted lines. They 
tend to add so much contrast they are distracting. But, 
I think it'll be easier for chat to see on stream. 

- The line highlight I have now is actually working nicely. I've
got a transparent background and the line color is very close
to the base background. The effect is that you can see the 
image I have for the background everywhere except for the
current line. It's very pleasant.

- The `vim.o.cursorline = true`lua` is what turns the 
lighting on. Using `vim.o.culopt = 'line'`` sets up 
the highlight to only show in the content section and not
on the line numbers. I like that look better. 

-- ref
-- title: TJ DeVries on Twitch
-- url:

-- ref
-- title: Neovim Help: cursorline
-- url:'cursorline'

-- ref
-- title: Neovim Help: cursorlineopt
-- url:'cursorlineopt'

-- categories
-- Neovim 

-- metadata
-- date: 2023-06-21 15:38:12
-- id: 2rwqg3wa
-- site: aws
-- type: post
-- status: published