Skip to content

Commit

Permalink
chore: configure the completion plugin a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarmos-san committed Jan 14, 2025
1 parent a983e33 commit 289a58e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dotfiles/.config/nvim/lua/plugins/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ return {
},
list = {
selection = {
preselect = true,
auto_insert = true,
preselect = function(ctx)
return ctx.mode ~= "cmdline"
end,
auto_insert = function(ctx)
return ctx.mode ~= "cmdline"
end,
},
},
ghost_text = {
Expand All @@ -50,9 +54,6 @@ return {
{ "source_name" },
},
},
auto_show = function(ctx)
return ctx.mode ~= "cmdline"
end,
},
},
},
Expand Down

0 comments on commit 289a58e

Please sign in to comment.