{"id":26692,"date":"2021-03-13T21:16:16","date_gmt":"2021-03-14T03:16:16","guid":{"rendered":"https:\/\/www.dannyadam.com\/blog\/?p=26692"},"modified":"2023-07-20T10:58:03","modified_gmt":"2023-07-20T14:58:03","slug":"nvim-scrollview","status":"publish","type":"post","link":"https:\/\/www.dannyadam.com\/blog\/2021\/03\/nvim-scrollview\/","title":{"rendered":"nvim-scrollview"},"content":{"rendered":"\n<p>I recently implemented <code>nvim-scrollview<\/code>, a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Neovim\">Neovim<\/a> plugin that displays interactive scrollbars.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2021\/03\/nvim-scrollview-screencast.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"1506\" height=\"905\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2021\/03\/nvim-scrollview-screencast.gif\" alt=\"\" class=\"wp-image-26693\"\/><\/a><\/figure>\n\n\n\n<p>The scrollbars serve as a visual aid, which can be helpful in addition to the position information already provided in the status line. The main features are 1) handling for folds, 2) support for mouse dragging, and 3) partial transparency so that text is not covered. Scrollbar generation and refreshing work automatically.<\/p>\n\n\n\n<p>The plugin is implemented primarily in Vimscript, but requires Neovim 0.5 for its <code>WinScrolled<\/code> event. Additionally, Neovim&#8217;s built-in support for Lua was utilized to speed up processing.<\/p>\n\n\n\n<p>The source code\u2014along with installation instructions\u2014is available on GitHub:<br><a href=\"https:\/\/github.com\/dstein64\/nvim-scrollview\">https:\/\/github.com\/dstein64\/nvim-scrollview<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently implemented nvim-scrollview, a Neovim plugin that displays interactive scrollbars. The scrollbars serve as a visual aid, which can be helpful in addition to the position information already provided in the status line. The main features are 1) handling for folds, 2) support for mouse dragging, and 3) partial transparency so that text is [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[88,89],"class_list":["post-26692","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-neovim","tag-nvim-scrollview"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1sCC6-6Ww","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/26692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/comments?post=26692"}],"version-history":[{"count":8,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/26692\/revisions"}],"predecessor-version":[{"id":26933,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/26692\/revisions\/26933"}],"wp:attachment":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/media?parent=26692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/categories?post=26692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/tags?post=26692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}