Skip to content

Commit

Permalink
fix: cmdline source of nvim-cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
henry40408 committed Oct 18, 2024
1 parent 24c9864 commit 7ccc3f5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion home-manager/common/neovim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,23 @@ later(function()
{ name = "nvim_lsp_signature_help" },
{ name = "luasnip" },
{ name = "path" },
{ name = "cmdline" },
}, {
{ name = "buffer", keyword_length = 3 },
}),
})
cmp.setup.cmdline({ "/", "?" }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = "buffer" },
},
})
cmp.setup.cmdline({ ":" }, {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
{ name = "cmdline" },
}),
})
end)

-- language server protocols
Expand Down

0 comments on commit 7ccc3f5

Please sign in to comment.