Skip to content

mattpatterson94/fzf-lua-import.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fzf-lua-import.nvim

For when the lsp fails to identify modules in your codebase. Quickly search for modules and add the import statement to your buffer.

Depends on fzf-lua to extend upon.

In Action

Inline

Screen.Recording.2025-01-30.at.3.50.06.pm.mov

Live grep

Screen.Recording.2025-01-30.at.3.50.28.pm.mov

Installation

Install ripgrep.

Using Lazy:

  {
    'mattpatterson94/fzf-lua-import.nvim',
    dependencies = { "ibhagwan/fzf-lua" },
    opts = {
      ...
    },
  },

Supported Languages

  • JavaScript
  • Typescript

Configuration

fzf-lua-import.nvim requires no configuration out of the box, but you can tweak it in the following ways:

require("fzf-lua-import").setup()

Usage

Commands

-- perform a live grep for import
:FzfImport live_grep
-- search for the word under the cursor
:FzfImport grep_cword

Default keymap

<leader>ci - live grep
<leader>cI - grep_cword

About

Import modules with ease

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages