Skip to content

Commit 541b516

Browse files
committed
fix(neovim): correct color cursor for terminal mode.
1 parent e1d16e0 commit 541b516

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

module/neovim/lua/core/options.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
local api = vim.api
12
local opt = vim.opt
23

34
-- Appearance
@@ -14,6 +15,9 @@ opt.clipboard:append("unnamedplus")
1415
-- Cursor
1516
opt.guicursor = ""
1617

18+
-- Cursor color
19+
api.nvim_set_hl(0, "TermCursor", { fg = vim.api.nvim_get_hl_by_name("Normal", true).background, bg = "#ffffff" })
20+
1721
-- Cursor line
1822
opt.cursorline = true
1923

@@ -31,7 +35,7 @@ opt.relativenumber = true
3135
opt.wrap = false
3236

3337
-- Netrw
34-
vim.cmd("let g:netrw_liststyle = 3")
38+
api.nvim_set_var("netrw_liststyle", 3)
3539

3640
-- Search
3741
opt.ignorecase = true

0 commit comments

Comments
 (0)