Skip to content

Commit

Permalink
feat(neovim): add Snikimonkd/cmp-go-pkgs (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
izumin5210 authored Dec 7, 2024
1 parent 9f00c0e commit 4fb498c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/.config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"bufdelete.nvim": { "branch": "master", "commit": "f6bcea78afb3060b198125256f897040538bcb81" },
"catppuccin": { "branch": "main", "commit": "c9e205fe035d622b3c2d66ee42edf368c0c31fd5" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-go-pkgs": { "branch": "main", "commit": "7a76e1f9c8d5f40fe27b8d6fcac04de4456875bb" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" },
Expand Down
5 changes: 5 additions & 0 deletions config/.config/nvim/lua/plugins/edit/config/nvim-cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function M.setup()
sources = cmp.config.sources({
{ name = "copilot", group_index = 1, priority = 1000 },
{ name = "nvim_lsp", group_index = 1, priority = 100 },
{ name = "go_pkgs", group_index = 1, priority = 100 },
{ name = "path", group_index = 1, priority = 10 },
{ name = "buffer", group_index = 1, priority = 1 },
{ name = "lazydev", group_index = 0 },
Expand All @@ -107,6 +108,10 @@ function M.setup()
side_padding = 0,
},
},
matching = {
-- for go_pkgs
disallow_symbol_nonprefix_matching = false,
},
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
Expand Down
1 change: 1 addition & 0 deletions config/.config/nvim/lua/plugins/edit/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ return {
method = "getCompletionsCycling",
},
},
"Snikimonkd/cmp-go-pkgs",
{
"onsails/lspkind.nvim",
config = function()
Expand Down

0 comments on commit 4fb498c

Please sign in to comment.