Skip to content

aekasitt/oxeye.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oxeye.nvim

Neovim plugin Top Languages Last commit Oxeye Banner

Installation

Lazy

{
  'aekasitt/oxeye.nvim',
  config = function()
    local oxeye = require('oxeye')
    vim.keymap.set('n', '<leader>ox', oxeye.live_grep, { desc = 'Live structural search' })
  end,
  dependencies = {
    'ibhagwan/fzf-lua',
    'nvim-lua/plenary.nvim',
  }
}

Packer

use {
  'aekasitt/oxeye.nvim',
  config = function()
    local oxeye = require('oxeye')
    vim.keymap.set('n', '<leader>ox', oxeye.live_grep, { desc = 'Live structural search' })
  end,
  requires = {
    'ibhagwan/fzf-lua',
    'nvim-lua/plenary.nvim',
  },
}

Roadmap

  • More commands
  • Less fzf-lua, floating panel and previewer can be done without
  • Add ast-grep linting
  • Dynamic installation scripts (install via brew, npm or pip)

Project structure

oxeye.nvim/
│
├── lua/
│   └── oxeye/
│       ├── build.lua       # Install ast-grep using cargo
│       └── init.lua        # Setup oxeye if not existed
│
├── plugin/
│   ├── oxeye.lua           # Verify dependencies before setup
│   └── state.lua           # Store window id, buffer and other configs
│
├── LICENSE                 # Details of MIT License
└── README.md               # Descriptions and roadmap

Alternatives

  1. cshuaimin/ssr.nvim - Treesitter based structural search and replace plugin for Neovim.
  2. MagicDuck/grug-far.nvim - Find and Replace plugin for neovim
  3. ray-x/telescope-ast-grep.nvim - AST grep extension for telescope.nvim

Acknowledgements

  1. อัญชัญ - Anchan typeface by Alisara Zilch
  2. YT: ast-grep - DevOnDuty by Dr. David Alexander Kunz

License

This project is licensed under the terms of the MIT license.

About

Structural search and rewrite tool to locate and replace code inside Neovim using ast-grep

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages