Skip to content

Commit

Permalink
feat: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Aug 25, 2024
1 parent 3858887 commit 5a80bfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion autoload/aceforeverd/plugin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function! s:config_plugins() abort
" TODO: sg pattern do not work well with single quote pattern
command! -bang -nargs=* SG
\ call fzf#vim#grep2(
\ 'sg run --heading never --pattern ', <q-args>, 0,
\ 'ast-grep run --heading never --pattern ', <q-args>, 0,
\ fzf#vim#with_preview(), <bang>0)

" more for vim-rsi
Expand Down
2 changes: 1 addition & 1 deletion lua/aceforeverd/keymap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local function ast_grep_search(opts)
local args = opts.fargs
local pattern = args[1]

local cmds = { 'sg', 'run', '--heading', 'never', '--pattern', pattern }
local cmds = { 'ast-grep', 'run', '--heading', 'never', '--pattern', pattern }
for i = 2, #args, 1 do
table.insert(cmds, args[i])
end
Expand Down
10 changes: 1 addition & 9 deletions lua/aceforeverd/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1074,14 +1074,6 @@ M.plugin_list = {
event = 'VeryLazy',
},

{
'andythigpen/nvim-coverage',
config = function()
require('coverage').setup()
end,
lazy = true,
},

{
'nvim-neotest/neotest',
lazy = true,
Expand Down Expand Up @@ -1155,7 +1147,7 @@ M.plugin_list = {
desc = "Delete Buffer",
},
{ "<leader>bD", function() require("mini.bufremove").delete(0, true) end, desc = "Delete Buffer (Force)" },
{ "<leader>mf", function() require('mini.files').open() end },
{ "<leader>mf", function() require('mini.files').open() end, desc = 'mini files' },
"<leader>ga",
"<leader>gA",
},
Expand Down

0 comments on commit 5a80bfa

Please sign in to comment.