Skip to content

vianney-g/jetbrains-scopes.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jetbrains-scopes.nvim

Author: Vianney Gremmel

Goal

Make the Jetbrains scopes available in telescope.nvim

You (or some of your colleagues) are using Jetbrains Scopes (e.g: in PyCharm) and you want to use them from vim. This plugin allows you to search in the scopes defined in your project.

The scopes must be defined in the .idea/scopes/*.xml files (they may have been generated by the IDE).

Warning

This is a very naive implemention (no xml parsing, naive globs interpretation, etc.).

Installation

Install the plugin with your favorite plugin manager.

Exemple, with Lazy

use {
    "vianney-g/jetbrains-scopes.nvim",
    requires = {
        "nvim-lua/plenary.nvim",
        "nvim-telescope/telescope.nvim",
    }
}

And then, in your init.lua:

require("jetbrains-scopes")

Usage

  1. Load a scope in neovim.
:JBSPickScope
  1. Fuzzy find inside the scope
:JBSSearch

You can attach these commands to a keymap, for example:

vim.keymap.set('n', '<leader>jp', ':JBSPick<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<leader>js', ':JBSSearch<CR>', { noremap = true, silent = true })

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages