commit 31050410e05d261786628cfcb1e1a1f930392a06
parent 50f5838365a2456bb039ee09bae64d0d7e178364
Author: Tomas Nemec <nemi@skaut.cz>
Date: Wed, 20 Oct 2021 08:33:23 +0200
update
Diffstat:
2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/after/queries/dart/refactoring.scm b/after/queries/dart/refactoring.scm
@@ -0,0 +1,28 @@
+;; Grabs all the local variable declarations. This is useful for scope
+;; variable passing. Which variables do we need to pass to the extracted
+;; function?
+;;((short_var_declaration
+;; (expression_list
+;; (identifier) @definition.local_name)))
+;;((var_declaration
+;; (var_spec
+;; (identifier) @definition.local_name)))
+
+;; grabs all the arguments that are passed into the function. Needed for
+;; function extraction, 106
+;;(function_declaration
+;; parameters: (parameter_list
+;; (parameter_declaration
+;; (identifier) @definition.function_argument)))
+
+;; TODO is this scope required? Fails when this is uncommented
+;; (program) @definition.scope
+;;(function_declaration) @definition.scope
+
+(block) @definition.block
+
+(declaration) @definition.statement
+(return_statement) @definition.statement
+(if_statement) @definition.statement
+(for_statement) @definition.statement
+(call_expression) @definition.statement
diff --git a/lua/tms/plugins.lua b/lua/tms/plugins.lua
@@ -117,7 +117,7 @@ local function init()
end,
}
use { -- smooth scrolling
- '~/.local/lib/neoscroll.nvim',
+ 'karb94/neoscroll.nvim',
config = function()
require('neoscroll').setup({mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>', 'zt', 'zz', 'zb'}})
local t = {}