A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/softinio/scaladex.nvim below:

softinio/scaladex.nvim: Neovim and Telescope plugin to search the scaladex index

This neovim plugin serves two purposes:

Using packer:

Add the following to your init.lua:

use { 'nvim-telescope/telescope.nvim', requires = { { 'nvim-lua/popup.nvim' }, { 'nvim-lua/plenary.nvim' } } }
use { 'softinio/scaladex.nvim' }

Require the extension:

require('telescope').load_extension('scaladex')

Add a mapping to open search box:

vim.api.nvim_set_keymap('n', '<leader>si', [[<cmd>lua require('telescope').extensions.scaladex.scaladex.search()<cr>]], { noremap = true, silent = true })

Sample PR updating my config.

  1. Open search (if above mapping set that would be your <leader> key and si)
  2. Enter package you are searching for and press enter, e.g. cats
  3. Select artifact
  4. From the results panel select the one you are interested in, then:
Keyboard What it does <C-s> Opens the browser, scaladex page for the package you selected <C-R> (i.e. enter) Copies to your clipboard what you need to add to your build file to add dependency to your project
local scaladex = require'scaladex'
-- search for 'cats' 
scaladex.search('cats')
-- get details of 'cats' library
scaladex.get_project('typelevel', 'cats')
Demo and Video Tutorial on using scaladex.nvim

Using scaladex.nvim

Have a question or want to discuss anything related to this project? Start a Discussion

Have a problem, a bug or a feature request? Make an issue or PR welcome

git clone git@github.com:softinio/scaladex.nvim.git
cd scaladex.nvim
nvim --cmd "set rtp+=$(pwd)"

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4