> e.g. I wanted to have a function header visible in the first line of editor even when the top of the function has scrolled off the screen
This sounds super-useful. Do you mind sharing how you achieved this?
This sounds super-useful. Do you mind sharing how you achieved this?
For vim: https://github.com/wellle/context.vim
For neovim (much higher performance in my experience): https://github.com/nvim-treesitter/nvim-treesitter-context
I believe there's now also a VS code plugin for the same behavior, but I don't know what it's called.
It's called "sticky scroll". It's a relatively new feature of VS Code.
https://code.visualstudio.com/updates/v1_70#_editor-sticky-s...