Skip to content

Commit 4101293

Browse files
committed
Fix some nvim errors and warnings
1 parent 08d1191 commit 4101293

File tree

6 files changed

+23
-22
lines changed

6 files changed

+23
-22
lines changed

config/nvim/lua/plugins/blink-cmp.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
return {
22
"saghen/blink.cmp",
33
build = "cargo +nightly build --release",
4+
dependencies = {
5+
{
6+
"giuxtaposition/blink-cmp-copilot",
7+
},
8+
},
49
opts = function(_, opts)
10+
opts.fuzzy = {
11+
implementation = "lua",
12+
}
513
opts.sources = opts.sources or {}
14+
opts.sources.default = { "lsp", "path", "snippets", "buffer", "copilot" }
615
opts.sources.providers = opts.sources.providers or {}
716
opts.sources.providers.copilot = opts.sources.providers.copilot or {}
817

918
opts.sources.providers.copilot = {
19+
name = "copilot",
20+
module = "blink-cmp-copilot",
21+
score_offset = 100,
22+
async = true,
1023
transform_items = function(_, items)
1124
local CompletionItemKind = require("blink.cmp.types").CompletionItemKind
1225
local kind_idx = #CompletionItemKind + 1

config/nvim/lua/plugins/copilot.lua

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,4 @@ return {
4949
})
5050
end,
5151
},
52-
{
53-
"saghen/blink.cmp",
54-
dependencies = {
55-
{
56-
"giuxtaposition/blink-cmp-copilot",
57-
},
58-
},
59-
opts = {
60-
sources = {
61-
default = { "lsp", "path", "snippets", "buffer", "copilot" },
62-
providers = {
63-
copilot = {
64-
name = "copilot",
65-
module = "blink-cmp-copilot",
66-
score_offset = 100,
67-
async = true,
68-
},
69-
},
70-
},
71-
},
72-
},
7352
}

home/dot-exports

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export dockerclean='docker image prune -a --filter "until=12h"'
1212
export HALCONROOT=$HOME/MVTec/HALCON-22.11-Steady
1313
export HALCONARCH="x64-linux"
1414
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$HALCONROOT/lib/$HALCONARCH"
15+
export GOROOT=/usr/local/go-bin
1516

1617
# check if we are on OSX and then set CLICOLOR
1718
unamestr=`uname`

scripts/base_install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function base_install() {
4646
pass \
4747
python3 \
4848
python3-pip \
49+
ripgrep \
4950
tmux \
5051
wget
5152

@@ -87,6 +88,7 @@ function base_install() {
8788
$alt_install \
8889
$NODEJS
8990

91+
pip3_install neovim pynvim==5.2
9092
install_rust
9193

9294
INFO "Installing Lazy Dependencies"

scripts/devcontainer.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ print_details
1313

1414
apt_update
1515
apt_install \
16+
fd-find \
1617
fuse \
1718
lua5.4 \
1819
luarocks \
1920
pass \
2021
python3-venv \
2122
pipx \
23+
ripgrep \
2224
software-properties-common \
2325
stow \
2426
wget \
@@ -32,6 +34,10 @@ pacstall_install \
3234
neovim \
3335
nodejs-deb
3436

37+
pip3_install \
38+
neovim \
39+
pynvim==5.2
40+
3541
install_rust
3642

3743
# change to zsh as default shell

scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function pacstall_install() {
161161
}
162162

163163
function pip3_install() {
164-
pipx install "$@"
164+
pip3 install --break-system-packages "$@"
165165

166166
return 0
167167
}

0 commit comments

Comments
 (0)