Skip to content

Commit

Permalink
wiop
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Feb 8, 2025
1 parent 76379ef commit ab240fc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
17 changes: 14 additions & 3 deletions lua/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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 }
},
Expand Down
2 changes: 1 addition & 1 deletion lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ return {

{ -- for lsp features in code cells / embedded code
'jmbuhr/otter.nvim',
dev = true,
dev = false,
dependencies = {
{
'neovim/nvim-lspconfig',
Expand Down
2 changes: 1 addition & 1 deletion lua/plugins/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ return {
--- Put your configuration here
---@type Neominimap.UserConfig
vim.g.neominimap = {
auto_enable = true,
auto_enable = false,
}
end,
},
Expand Down Expand Up @@ -45,7 +45,7 @@ return {
{
'jmbuhr/telescope-zotero.nvim',
enabled = true,
dev = true,
dev = false,
dependencies = {
{ 'kkharji/sqlite.lua' },
},
Expand Down

0 comments on commit ab240fc

Please sign in to comment.