diff --git a/lua/plugins/completion.lua b/lua/plugins/completion.lua index 711f1e4..75fb683 100644 --- a/lua/plugins/completion.lua +++ b/lua/plugins/completion.lua @@ -10,8 +10,8 @@ return { { -- new completion plugin 'saghen/blink.cmp', enabled = true, - -- version = 'v0.*', - dev = true, + version = 'v0.*', + dev = false, -- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust -- build = 'cargo build --release', lazy = false, -- lazy loading handled internally @@ -43,6 +43,11 @@ return { cmdline = { enabled = false, }, + min_keyword_length = function(ctx) + -- only applies when typing a command, doesn't apply to arguments + if ctx.mode == 'cmdline' and string.find(ctx.line, ' ') == nil then return 3 end + return 0 + end, providers = { emoji = { module = "blink-emoji", @@ -77,7 +82,13 @@ return { auto_show_delay_ms = 100, treesitter_highlighting = true, }, - menu = { auto_show = function(ctx) return ctx.mode ~= 'cmdline' end }, + menu = { + auto_show = function(ctx) + vim.print('hello') + vim.print(vim.fn.getcmdtype()) + return ctx.mode ~= "cmdline" or not vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype()) + end, + }, }, signature = { enabled = true } }, diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index e068696..92ce923 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -3,7 +3,7 @@ return { { -- for lsp features in code cells / embedded code 'jmbuhr/otter.nvim', - dev = true, + dev = false, dependencies = { { 'neovim/nvim-lspconfig', diff --git a/lua/plugins/quarto.lua b/lua/plugins/quarto.lua index e69c8fb..40756e7 100644 --- a/lua/plugins/quarto.lua +++ b/lua/plugins/quarto.lua @@ -3,7 +3,7 @@ return { { -- requires plugins in lua/plugins/treesitter.lua and lua/plugins/lsp.lua -- for complete functionality (language features) 'quarto-dev/quarto-nvim', - dev = true, + dev = false, opts = { codeRunner = { enabled = true, diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index c276cfa..b2e2322 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -17,7 +17,7 @@ return { --- Put your configuration here ---@type Neominimap.UserConfig vim.g.neominimap = { - auto_enable = true, + auto_enable = false, } end, }, @@ -45,7 +45,7 @@ return { { 'jmbuhr/telescope-zotero.nvim', enabled = true, - dev = true, + dev = false, dependencies = { { 'kkharji/sqlite.lua' }, },