Skip to content

Commit cfaf9fc

Browse files
committed
feat: reduce build-plugin command to minimal dependencies, add command to docs
1 parent 32069be commit cfaf9fc

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
-- build = 'cargo build --release',
4343
-- On musl libc based systems you need to add this flag
4444
-- build = 'RUSTFLAGS="-C target-feature=-crt-static" cargo build --release',
45+
-- If you use nix, you can build from source using latest nightly rust with:
46+
-- build = 'nix run .#build-plugin',
4547

4648
---@module 'blink.cmp'
4749
---@type blink.cmp.Config
@@ -79,7 +81,7 @@ For LazyVim/distro users, you can disable nvim-cmp via:
7981
MiniDeps.add({
8082
source = "saghen/blink.cmp",
8183
depends = {
82-
"rafamadriz/friendly-snippets",
84+
"rafamadriz/friendly-snippets",
8385
},
8486
checkout = "some.version", -- check releases for latest tag
8587
})
@@ -424,8 +426,8 @@ The plugin use a 4 stage pipeline: trigger -> sources -> fuzzy -> render
424426

425427
- Avoids the complexity of nvim-cmp's configuration by providing sensible defaults
426428
- Updates on every keystroke with 0.5-4ms of overhead, versus nvim-cmp's default debounce of 60ms with 2-50ms hitches from processing
427-
- Setting nvim-cmp's debounce to 0ms leads to visible stuttering. If you'd like to stick with nvim-cmp, try [yioneko's fork](https://github.com/yioneko/nvim-cmp) or the more recent [magazine.nvim](https://github.com/iguanacucumber/magazine.nvim)
428-
- Boosts completion item score via frecency *and* proximity bonus. nvim-cmp only boosts score via proximity bonus and optionally by recency
429+
- Setting nvim-cmp's debounce to 0ms leads to visible stuttering. If you'd like to stick with nvim-cmp, try [yioneko's fork](https://github.com/yioneko/nvim-cmp) or the more recent [magazine.nvim](https://github.com/iguanacucumber/magazine.nvim)
430+
- Boosts completion item score via frecency _and_ proximity bonus. nvim-cmp only boosts score via proximity bonus and optionally by recency
429431
- Typo-resistant fuzzy matching unlike nvim-cmp's fzf-style fuzzy matching
430432
- Core sources (buffer, snippets, path, lsp) are built-in versus nvim-cmp's exclusively external sources
431433
- Built-in auto bracket and signature help support
@@ -439,7 +441,6 @@ The plugin use a 4 stage pipeline: trigger -> sources -> fuzzy -> render
439441
- Cmdline completions
440442
- Windows support (You may temporarily build from source as outlined in the [installation](#installation) section)
441443

442-
443444
## Special Thanks
444445

445446
[@hrsh7th](https://github.com/hrsh7th/) nvim-cmp used as inspiration and nvim-path implementation modified for path source

flake.nix

+1-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@
104104
# define the default dev environment
105105
devShells.default = pkgs.mkShell {
106106
name = "blink";
107-
packages = with pkgs; [
108-
fenix.complete.toolchain
109-
rust-analyzer-nightly
110-
];
107+
packages = with pkgs; [ fenix.minimal.toolchain ];
111108
};
112109
};
113110
};

0 commit comments

Comments
 (0)