Home

Awesome

scaladex.nvim lint

scaladex.nvim

This neovim plugin serves two purposes:

Requirements

Supports

Installation

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.

Usage

Telescope

  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:
KeyboardWhat 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

Use as a Library

To import library

local scaladex = require'scaladex'

Functions available

Examples

Search
-- search for 'cats' 
scaladex.search('cats')
Get Project
-- get details of 'cats' library
scaladex.get_project('typelevel', 'cats')

Demo and Video Tutorial on using scaladex.nvim

Using scaladex.nvim

Support and Help

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

Development

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

To Do