Skip to content

Instantly share code, notes, and snippets.

View MSMazaya's full-sized avatar
💬
Typing...

Muhammad Sulthan Mazaya MSMazaya

💬
Typing...
View GitHub Profile
@MSMazaya
MSMazaya / stop-animate-cursor.md
Last active January 27, 2023 21:35
Neovide stop cursor animation when going to or after going from command line

I was really annoyed by this behaviour of neovide animation. neovide behavior It happened because I remap ctrl+s to :w to save a file, and generally I don't want the cursor to be animated when it goes to the command line. To solve this issue, I use a configuration as follows.

PreviousMode = vim.api.nvim_get_mode().mode

local function animateCursor()
    vim.g.neovide_cursor_animation_length = 0.06
    vim.g.neovide_cursor_trail_size = 0.7
// Place your key bindings in this file to override the defaults
[
{
"key": "a",
"command": "explorer.newFile",
"when": "explorerViewletFocus && !inputFocus"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.toggleTerminal",
"C_Cpp.updateChannel": "Insiders",
"editor.cursorStyle": "line",
"editor.insertSpaces": false,
"editor.lineNumbers": "on",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"editor.wordWrap": "off",
"terminal.integrated.fontSize": 16,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"