Skip to content

Commit

Permalink
feat(nvim): use latest LazyVim, blink.cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
minusfive committed Dec 13, 2024
1 parent f4a0e47 commit 9707192
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .config/nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ vim.filetype.add({
Brewfile = "ruby",
},
})

-- Use latest blink.cmp
vim.g.lazyvim_blink_main = true
26 changes: 25 additions & 1 deletion .config/nvim/lua/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ local cmp_window_options = {
}

return {
{
"saghen/blink.cmp",
optional = true,
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
signature = { enabled = true },

completion = {
list = {
selection = "manual",
},

menu = {
max_height = 15,

draw = {
treesitter = true,
},
},
},
},
},

-- Use <tab> for completion and snippets (supertab)
-- first: disable default <tab> and <s-tab> behavior in LuaSnip
{
Expand All @@ -15,9 +39,9 @@ return {
end,
},

-- then: setup supertab in cmp
{
"hrsh7th/nvim-cmp",
optional = true,
event = { "InsertEnter", "TextChanged" },
dependencies = {
"hrsh7th/cmp-emoji",
Expand Down
3 changes: 3 additions & 0 deletions .config/nvim/lua/plugins/core.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
return {
{ "LazyVim", version = false },
}

0 comments on commit 9707192

Please sign in to comment.