.config/nvim/lua/plugins/completion.lua

changeset 1070
72b613de1102
parent 1064
fcfa295076a8
child 1071
e76020af023d
equal deleted inserted replaced
1069:0e871a1b59e3 1070:72b613de1102
10 "hrsh7th/cmp-nvim-lua", 10 "hrsh7th/cmp-nvim-lua",
11 "hrsh7th/cmp-omni", 11 "hrsh7th/cmp-omni",
12 "hrsh7th/cmp-path", 12 "hrsh7th/cmp-path",
13 "quangnguyen30192/cmp-nvim-tags", 13 "quangnguyen30192/cmp-nvim-tags",
14 }, 14 },
15 opts = function() 15 config = function()
16 local cmp = require("cmp") 16 local cmp = require("cmp")
17 return { 17 cmp.setup({
18 preselect = cmp.PreselectMode.None,
18 completion = { 19 completion = {
19 keyword_length = 3, 20 keyword_length = 3,
20 }, 21 },
21 formatting = { 22 formatting = {
22 format = function(entry, vim_item) 23 format = function(entry, vim_item)
52 { name = "path" }, 53 { name = "path" },
53 -- { name = "omni" }, 54 -- { name = "omni" },
54 { name = "tags" }, 55 { name = "tags" },
55 { name = "calc" }, 56 { name = "calc" },
56 }), 57 }),
57 } 58 })
58 end, 59 end,
59 }, 60 },
60 } 61 }

mercurial