Hiding cursor doesn't seem to work? #1525
Unanswered
marcinjahn
asked this question in
Q&A
Replies: 1 comment
-
@marcinjahn I've successfully made it work using this setup : event_handlers = {
{
event = "neo_tree_buffer_enter",
handler = function()
local hl = vim.api.nvim_get_hl_by_name('Cursor', true)
hl.blend = 100
vim.api.nvim_set_hl(0, 'Cursor', hl)
vim.opt.guicursor:append('a:Cursor/lCursor')
end
},
{
event = "neo_tree_buffer_leave",
handler = function()
local hl = vim.api.nvim_get_hl_by_name('Cursor', true)
hl.blend = 0
vim.api.nvim_set_hl(0, 'Cursor', hl)
vim.opt.guicursor:remove('a:Cursor/lCursor')
end
},
}, I'm not really fluent in lua so things could be done a bit better I think but still, I hope this can help ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to follow https://github.com/nvim-neo-tree/neo-tree.nvim/wiki/Visual-Customizations#hide-cursor-in-neo-tree-window
I'm using LazyVim, and I added the following plugin file:
It doesn't seem to work in any way, I can still see the cursor in the neo-tree. Did I do something wrong?
Beta Was this translation helpful? Give feedback.
All reactions