This neovim plugin serves two purposes:
require
and query the scaladex indexUsing 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.
<leader>
key and si
)cats
<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(search_term, targeted_platform, scala_version)
: searches scaladex for the term you want to search for.
targeted_platform
defaults to "JVM" and scala_version
defaults to 2.13
when not provided with function call.
search_term
get_project(organization, repository)
- returns all details of a specific project from scaladex
organization
is the github organization
repository
is the project/repository name within the organization-- search for 'cats'
scaladex.search('cats')
-- get details of 'cats' library
scaladex.get_project('typelevel', 'cats')
Demo and Video Tutorial on 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)"
scala-cli
maven
and gradle
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