Skip to content

Commit 880cbdc

Browse files
committed
feat(blink-cmp): minimal config, tracks NotAShelf/nvf#828
1 parent e48982b commit 880cbdc

File tree

4 files changed

+75
-65
lines changed

4 files changed

+75
-65
lines changed

flake.lock

Lines changed: 20 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
url = "github:jas-singhfsu/hyprpanel";
1313
inputs.nixpkgs.follows = "nixpkgs";
1414
};
15-
nvf = {
16-
url = "github:notashelf/nvf";
17-
inputs.nixpkgs.follows = "nixpkgs";
18-
};
15+
nvf.url = "github:horriblename/nvf/blink-cmdline";
1916
swww.url = "github:LGFae/swww";
2017
helix.url = "github:helix-editor/helix/master";
2118
kalker.url = "github:PaddiM8/kalker";

home/editor/nvim/autocomplete/blink-cmp.nix

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,57 @@
55
enable = true;
66
friendly-snippets.enable = true;
77

8-
mappings = {
9-
# WARN: kinda buggy
10-
close = null;
11-
confirm = "<C-e>";
8+
# mappings = {
9+
# # WARN: kinda buggy
10+
# close = null;
11+
# confirm = "<C-e>";
1212

13-
next = "<C-n>";
14-
previous = "<C-p>";
15-
scrollDocsDown = "<C-d>";
16-
scrollDocsUp = "<C-u>";
17-
};
18-
setupOpts = {
19-
# DEV:
20-
# snippets.preset = "luasnip";
21-
# FIXME: dyn
22-
sources.providers.snippets.opts.search_paths = [
23-
"/home/othi/dotfiles_nix/.config/nvim/snippets"
24-
];
13+
# next = "<C-n>";
14+
# previous = "<C-p>";
15+
# scrollDocsDown = "<C-d>";
16+
# scrollDocsUp = "<C-u>";
17+
# };
18+
# setupOpts = {
19+
# # DEV:
20+
# # snippets.preset = "luasnip";
21+
# sources.providers.snippets.opts.search_paths = [
22+
# "/home/othi/dotfiles_nix/.config/nvim/snippets"
23+
# ];
2524

26-
cmdline.sources = null;
27-
cmdline.keymap.preset = "default";
28-
cmdline.completion.menu.auto_show = true;
29-
signature.enabled = true;
30-
fuzzy.implementation = "prefer_rust_with_warning";
25+
# cmdline.sources = null;
26+
# cmdline.keymap.preset = "default";
27+
# cmdline.completion.menu.auto_show = true;
28+
# signature.enabled = true;
29+
# fuzzy.implementation = "prefer_rust_with_warning";
3130

32-
keymap = {
33-
"<C-h>" = [ "cancel" ];
34-
"<CR>" = [
35-
"accept"
36-
"fallback"
37-
];
38-
};
31+
# keymap = {
32+
# "<C-h>" = [ "cancel" ];
33+
# "<CR>" = [
34+
# "accept"
35+
# "fallback"
36+
# ];
37+
# };
3938

40-
# nvim-cmp-like menu drawing
41-
completion.menu.draw.columns = [
42-
{
43-
"@1" = "label";
44-
"@2" = "label_description";
45-
gap = 4;
46-
}
39+
# # nvim-cmp-like menu drawing
40+
# completion.menu.draw.columns = [
41+
# {
42+
# "@1" = "label";
43+
# "@2" = "label_description";
44+
# gap = 4;
45+
# }
4746

48-
{
49-
"@1" = "kind_icon";
50-
"@2" = "kind";
51-
gap = 2;
52-
}
53-
# or this syntax if gap is not needed
54-
# [
55-
# "kind_icon"
56-
# "kind"
57-
# ]
58-
];
59-
};
47+
# {
48+
# "@1" = "kind_icon";
49+
# "@2" = "kind";
50+
# gap = 2;
51+
# }
52+
# # or this syntax if gap is not needed
53+
# # [
54+
# # "kind_icon"
55+
# # "kind"
56+
# # ]
57+
# ];
58+
# };
6059
};
6160
};
6261
}

home/editor/nvim/default.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ _: {
2727
};
2828
binds.whichKey.enable = true;
2929

30-
autocmds = [
31-
{
32-
enable = true;
33-
desc = "Trim whitespace";
34-
command = "%s/\\s\\+$//e";
35-
event = [ "BufWritePre" ];
36-
}
37-
];
30+
# autocmds = [
31+
# {
32+
# enable = true;
33+
# desc = "Trim whitespace";
34+
# command = "%s/\\s\\+$//e";
35+
# event = [ "BufWritePre" ];
36+
# }
37+
# ];
3838
};
3939
}

0 commit comments

Comments
 (0)