From b5b8c80b16ebf309d4485e169b0cfcdfee5b9002 Mon Sep 17 00:00:00 2001 From: JafarAbdi Date: Sat, 26 Mar 2022 07:16:24 +0300 Subject: [PATCH] Highlight on win scroll --- lua/nvim-treesitter-refactor/highlight_current_scope.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-treesitter-refactor/highlight_current_scope.lua b/lua/nvim-treesitter-refactor/highlight_current_scope.lua index f2103a6..9ad7302 100644 --- a/lua/nvim-treesitter-refactor/highlight_current_scope.lua +++ b/lua/nvim-treesitter-refactor/highlight_current_scope.lua @@ -46,7 +46,7 @@ function M.attach(bufnr) -- luacheck: push ignore 631 cmd( string.format( - [[autocmd CursorMoved lua require'nvim-treesitter-refactor.highlight_current_scope'.highlight_current_scope(%d)]], + [[autocmd CursorMoved,WinScrolled lua require'nvim-treesitter-refactor.highlight_current_scope'.highlight_current_scope(%d)]], bufnr, bufnr )