Final welcome slides

This commit is contained in:
Salar Rahmanian 2021-11-24 00:06:56 -08:00
parent 3fd1b283af
commit 097d9e2bf5
32 changed files with 811 additions and 602 deletions

View file

@ -0,0 +1,70 @@
---
title: Using scaladex.nvim
author: Salar Rahmanian (@Softinio)
extensions:
- qrcode
---
# Follow Me
```qrcode-ex
columns:
- data: "https://twitter.com/SalarRahmanian"
caption: "Twitter: @SalarRahmanian"
- data: "https://watch.softinio.com/c/softinio/videos"
caption: "Videos: watch.softinio.com"
- data: "https://www.github.com/softinio"
caption: "GitHub: @Softinio"
```
---
# scaladex.nvim
- A Telescope Extension written in Lua
- Lets you search scaladex
- Copies the dependency/Library you choose to clipboard
- Or can open the scaladex page for the library in your browser
- Also provdes a lua library to query scaladex that you can use in your own projects
---
# How do you set up the telescope extension
- I use packer and have moved my setup to `lua`
- Lets look at my `init.lua`
---
# Using the telescope extension
- Lets look at a scala project and add a dependency to it
- Lets take a look at the same dependency in a web browser
- To summarize, once you have searched for your package and selected one:
- press enter to copy it to clipboard, then paste it into your build file or where ever you want
- press <C-s> to open the scaladex page in your browser
---
# Using as a lua library to query scaladex
## Two methods
- search(search_term, targeted_platform, scala_version)
- get_project(organization, repository)
- They both return a lua table!
- Lets take a look
---
# Thank you!
- Use GitHub issues or discussions if you have any questions, bug reports or feature requests
- Contributions and PR's welcome
# https://github.com/softinio/scaladex.nvim
## Follow Me
- Twitter: @SalarRahmanian
- Videos: https://watch.softinio.com/softinio

50
scaladex.nvim/shell.nix Normal file
View file

@ -0,0 +1,50 @@
with import <nixpkgs> {};
( let
click = pkgs.python39Packages.buildPythonPackage rec {
name = "click-${version}";
version = "7.1.2";
src = pkgs.fetchurl{
url = "https://files.pythonhosted.org/packages/27/6f/be940c8b1f1d69daceeb0032fee6c34d7bd70e3e649ccac0951500b4720e/click-${version}.tar.gz";
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a";
};
};
lookatme = pkgs.python39Packages.buildPythonPackage rec {
name = "lookatme-${version}";
version = "2.3.2";
src = pkgs.fetchurl{
url = "https://files.pythonhosted.org/packages/b0/96/3ebc7780e744c2265043b53a51d232edee02cd2fb7c39dc21463bd05229d/lookatme-${version}.tar.gz";
sha256 = "a8864c9203a6e635e6c5314b4ea3018692c185f08bf31bd4c71aa94ba363715c";
};
propagatedBuildInputs = [ pkgs.python39Packages.pyyaml pkgs.python39Packages.pygments pkgs.python39Packages.urwid pkgs.python39Packages.mistune click pkgs.python39Packages.marshmallow python39Packages.pytest ];
meta = {
homepage = "https://github.com/d0c-s4vage/lookatme";
description = "List processing tools and functional utilities";
# license = with licenses; [ mit ];
maintainers = with maintainers; [ softinio ];
};
};
lookatme_qr = pkgs.python39Packages.buildPythonPackage rec {
name = "lookatme.contrib.qrcode-${version}";
version = "2.2.0";
src = pkgs.fetchurl{
url = "https://files.pythonhosted.org/packages/bd/53/e0b9745b2fa0ff4060fb396bb83fd8defd7fc2a04c8f21c176030db02af0/lookatme.contrib.qrcode-${version}.tar.gz";
sha256 = "4f0c7308e3d858ad06acb9f3f685080e5ba59e6e76c41eb4f557ca422f0d6601";
};
propagatedBuildInputs = [ pkgs.python39Packages.pyqrcode lookatme ];
};
in pkgs.python39.buildEnv.override rec {
extraLibs = [ click lookatme lookatme_qr ];
}
).env