Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: Implement an install script for rocks.nvim #30

Merged
merged 31 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2d44865
feat: add installer skeleton code
vhyrro Oct 28, 2023
2088623
fix: try to make installer work
vhyrro Oct 28, 2023
1293897
feat: add welcome screen to installer
vhyrro Oct 28, 2023
9eca789
chore(makefile): make all commands also interact with `installer.lua`
vhyrro Oct 28, 2023
3352f55
feat: add more UI elements
vhyrro Oct 28, 2023
3be7c5b
feat: add extra description and store data from subbuffers
vhyrro Oct 28, 2023
348b142
chore: increase size for installation path
vhyrro Oct 28, 2023
00e7d68
fix: incorrect alignment of centered text with input fields
vhyrro Oct 28, 2023
a78a553
feat: add support for default values
vhyrro Oct 28, 2023
7dbd1a6
docs: add documentation to `installer.lua`
vhyrro Nov 5, 2023
c1e92f5
feat: add option to auto set up luarocks on the user's machine
vhyrro Nov 20, 2023
54fcef4
feat(installer): add `<OK>` button
vhyrro Nov 20, 2023
1a7ab97
feat(installer): add luarocks installation code
vhyrro Nov 20, 2023
0fb88c8
feat(installer): add bootstrapping code
vhyrro Nov 20, 2023
d0d7210
fix(installer): use self-contained luarocks binary when possible
vhyrro Nov 20, 2023
f0dc3b5
fix(installer): install rocks.nvim instead of neorg (was used for tes…
vhyrro Nov 20, 2023
ca8a105
refactor!: remove bootstrapping code from within the plugin
vhyrro Nov 21, 2023
cda58f5
refactor: remove `rocks.nvim` dependencies
vhyrro Nov 21, 2023
9aebb0e
feat: finalize installation process
vhyrro Nov 21, 2023
26bd74c
feat(installer): improve "installation complete" screen
vhyrro Nov 22, 2023
9acad70
feat(installer): use the neorocks binary server for faster installation
vhyrro Nov 24, 2023
b46d9ef
docs(README): update prerequisites
vhyrro Nov 24, 2023
f44ea11
ref: add vim.notify calls for live progress
vhyrro Nov 24, 2023
aa8770e
ref(installer): set up a luarocks installation for the user by default
vhyrro Nov 24, 2023
4aad9aa
feat(installer): add `luarocks_binary` flag for rocks.nvim configuration
vhyrro Nov 24, 2023
a8ad5e1
docs: update README.md
vhyrro Nov 24, 2023
23dc09f
chore(master): release 1.0.1
github-actions[bot] Nov 22, 2023
bd3feee
fix(installer): remove missing `,` when copying code to clipboard
vhyrro Nov 27, 2023
b79d1f4
refactor: add binary rocks server to all luarocks operations
vhyrro Nov 27, 2023
043d985
fix(installer): fix column calculations for Neovim instances with lin…
vhyrro Nov 27, 2023
6a99872
fix(editorconfig): failing checks
vhyrro Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,11 @@ insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[installer.lua]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [1.0.1](https://github.com/nvim-neorocks/rocks.nvim/compare/v1.0.0...v1.0.1) (2023-11-22)


### Bug Fixes

* **operations:** only find dependencies of rocks that exist ([#21](https://github.com/nvim-neorocks/rocks.nvim/issues/21)) ([6d3810d](https://github.com/nvim-neorocks/rocks.nvim/commit/6d3810dfaa3eabd9a23fa433e0f308fc7b16102d))

## 1.0.0 (2023-11-20)


Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
format:
stylua -v --verify lua/rocks/ plugin/
stylua -v --verify lua/rocks/ plugin/ installer.lua

check:
luacheck lua/rocks plugin/
luacheck lua/rocks plugin/ installer.lua
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@
## :pencil: Requirements

- An up-to-date `Neovim` nightly (>= 0.10) installation.
- A C/C++ compiler of your choice (must be compatible with `C++17`!) + [`CMake`](https://cmake.org/).
- [`rust`](https://www.rust-lang.org/) toolchain (recommended latest stable version).
- [`luarocks`](https://luarocks.org/) installed on your system
and accessible in your shell.
- The `git` command line utility.
- `wget` or `curl` (if running on a UNIX system) - required for the remote `:source` command to work.

> [!IMPORTANT]
> In the future we will provide the dependencies [already compiled through rocks](https://github.com/nvim-neorocks/rocks.nvim/pull/15#discussion_r1375252696)
> and the C/C++ and Rust compilers will no longer be necessary.
> If you are running on Windows or an esoteric architecture, `rocks.nvim` will
> attempt to compile its dependencies instead of pulling a prebuilt binary. For
> the process to succeed you must have a **C++17 parser** and **Rust
> toolchain** installed on your system.

## :hammer: Installation

### :zap: Installation script (recommended)

The days of bootstrapping and editing your configuration are over.
rocks.nvim can be installed directly through an interactive installer within Neovim.
`rocks.nvim` can be installed directly through an interactive installer within Neovim.

You just have to run the following command inside your editor
and the installer will do the rest!
Expand Down
Loading
Loading