|
Is it possible to not highlight the snippet completion fields while in insert mode?
In the image, even while in insert mode, the field for the parameter remains highlighted. |
Answered by
skerkar10
Nov 3, 2025
Replies: 1 comment 1 reply
|
If I understand correctly what you want to achieve and assuming you're using the builtin snippets ( vim.api.nvim_create_autocmd('InsertEnter', {
callback = function()
if vim.snippet then
vim.cmd('hi link SnippetTabstopActive NONE')
end
end
})And if you want to clear the tabstop highlights when going to normal mode, you could add this mapping: vim.keymap.set({'i', 's'}, '<ESC>', function()
if vim.snippet then vim.snippet.stop() end
return '<ESC>'
end, { expr = true }) See also: neovim/neovim#26449 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Thanks for the reply! I mostly just wanted to clear the highlighting itself from the snippets. The second solution works, but requires leaving insert mode. I found the following to be better suited for my needs: