-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,56 @@ | ||
# Unnamed | ||
|
||
> a ultra fast Neovim plugin manager | ||
> a simple Neovim plugin manager which aims for fast start-up | ||
- fully written in lua | ||
- supports lazy loading | ||
- organizes all plugins to single directory for faster loading | ||
- uses blob-less clone to reduce disk usage and update faster | ||
|
||
To start using unnamed, write these lines to your config! | ||
|
||
```lua | ||
local uv = vim.loop | ||
|
||
-- install unnamed if required | ||
local unnamed_path = vim.env.HOME .. "/.config/nvim/unnamed" | ||
local stat, err = uv.fs_stat(unnamed_path) | ||
if stat == nil then | ||
vim.notify("installing unnamed") | ||
vim.fn.system("git clone https://github.com/approvers/unnamed.git " .. unnamed_path) | ||
end | ||
|
||
vim.opt.runtimepath:prepend(unnamed_path) | ||
|
||
local plugins = { | ||
-- if not setup required, you can directly write repo name | ||
"windwp/nvim-ts-autotag", | ||
-- use `fast_setup` to run setup function before first screen update | ||
{ | ||
repo = "ishan9299/nvim-solarized-lua", | ||
fast_setup = function() | ||
vim.cmd("colorscheme solarized-flat") | ||
end, | ||
}, | ||
-- use `setup` to run setup function lazily | ||
{ | ||
repo = "folke/trouble.nvim", | ||
setup = function() | ||
require("trouble").setup() | ||
end, | ||
}, | ||
} | ||
``` | ||
|
||
#### development prerequirements | ||
|
||
- just | ||
- stylua | ||
- docker | ||
- pre-commit | ||
|
||
#### how to develop | ||
|
||
1. run `pre-commit install` only the first time you cloned the repo | ||
1. `just dev` | ||
1. edit files under `lua/`, test it on `just dev`ed shell. |