Skip to content

Commit ab240fc

Browse files
committed
wiop
1 parent 76379ef commit ab240fc

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

lua/plugins/completion.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ return {
1010
{ -- new completion plugin
1111
'saghen/blink.cmp',
1212
enabled = true,
13-
-- version = 'v0.*',
14-
dev = true,
13+
version = 'v0.*',
14+
dev = false,
1515
-- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
1616
-- build = 'cargo build --release',
1717
lazy = false, -- lazy loading handled internally
@@ -43,6 +43,11 @@ return {
4343
cmdline = {
4444
enabled = false,
4545
},
46+
min_keyword_length = function(ctx)
47+
-- only applies when typing a command, doesn't apply to arguments
48+
if ctx.mode == 'cmdline' and string.find(ctx.line, ' ') == nil then return 3 end
49+
return 0
50+
end,
4651
providers = {
4752
emoji = {
4853
module = "blink-emoji",
@@ -77,7 +82,13 @@ return {
7782
auto_show_delay_ms = 100,
7883
treesitter_highlighting = true,
7984
},
80-
menu = { auto_show = function(ctx) return ctx.mode ~= 'cmdline' end },
85+
menu = {
86+
auto_show = function(ctx)
87+
vim.print('hello')
88+
vim.print(vim.fn.getcmdtype())
89+
return ctx.mode ~= "cmdline" or not vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype())
90+
end,
91+
},
8192
},
8293
signature = { enabled = true }
8394
},

lua/plugins/lsp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ return {
33

44
{ -- for lsp features in code cells / embedded code
55
'jmbuhr/otter.nvim',
6-
dev = true,
6+
dev = false,
77
dependencies = {
88
{
99
'neovim/nvim-lspconfig',

lua/plugins/quarto.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ return {
33
{ -- requires plugins in lua/plugins/treesitter.lua and lua/plugins/lsp.lua
44
-- for complete functionality (language features)
55
'quarto-dev/quarto-nvim',
6-
dev = true,
6+
dev = false,
77
opts = {
88
codeRunner = {
99
enabled = true,

lua/plugins/ui.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ return {
1717
--- Put your configuration here
1818
---@type Neominimap.UserConfig
1919
vim.g.neominimap = {
20-
auto_enable = true,
20+
auto_enable = false,
2121
}
2222
end,
2323
},
@@ -45,7 +45,7 @@ return {
4545
{
4646
'jmbuhr/telescope-zotero.nvim',
4747
enabled = true,
48-
dev = true,
48+
dev = false,
4949
dependencies = {
5050
{ 'kkharji/sqlite.lua' },
5151
},

0 commit comments

Comments
 (0)