From 25072a82ae62d3b14974c5fe4d3eb39a0bd6aeba Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 25 Nov 2024 19:08:38 -0500 Subject: [PATCH] feat: add ast-grep integration for Grug-Far --- lua/plugins/editor.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index b766708..5f24fc4 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -29,6 +29,7 @@ return { import = 'lazyvim.plugins.extras.editor.outline', }, { -- IncRename + import = 'lazyvim.plugins.extras.editor.inc-rename', }, { -- Treesitter-context @@ -40,6 +41,17 @@ return { { -- Refactoring import = 'lazyvim.plugins.extras.editor.refactoring', }, + { -- Grug-Far + 'MagicDuck/grug-far.nvim', + opts = { + engines = { + astgrep = { + path = 'ast-grep', + }, + }, + engine = 'ripgrep', + }, + }, { -- Trouble 'folke/trouble.nvim', cmd = require('data.cmd').trouble, @@ -158,7 +170,7 @@ return { 'nvchad/minty', lazy = true, }, - { + { -- Twilight 'folke/twilight.nvim', opts = require('data.types').twilight, },