Added types

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-03-17 16:34:11 +01:00
parent fa0745989a
commit 9556024c93
41 changed files with 65 additions and 23 deletions

View File

@@ -1,3 +1,4 @@
--- @type LazyPluginSpec
return {
"hrsh7th/nvim-cmp",
dependencies = {
@@ -54,16 +55,16 @@ return {
mapping = cmp.mapping.preset.insert({
["<C-p>"] = cmp.mapping.select_prev_item(), -- previous suggestion
["<C-n>"] = cmp.mapping.select_next_item(), -- next suggestion
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
["<CR>"] = cmp.mapping.confirm({ select = false }),
["<Tab>"] = nil,
["<S-Tab>"] = nil,
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" }, -- lsp
{ name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths
{ name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths
}),
formatting = {
format = lspkind.cmp_format({