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

changeset 1123
b7a3f68c02b2
parent 1122
8a56361b077f
child 1131
f3044a1658fc
equal deleted inserted replaced
1122:8a56361b077f 1123:b7a3f68c02b2
5 dependencies = { 5 dependencies = {
6 "hrsh7th/cmp-buffer", 6 "hrsh7th/cmp-buffer",
7 "hrsh7th/cmp-calc", 7 "hrsh7th/cmp-calc",
8 "hrsh7th/cmp-nvim-lsp", 8 "hrsh7th/cmp-nvim-lsp",
9 "hrsh7th/cmp-nvim-lua", 9 "hrsh7th/cmp-nvim-lua",
10 "hrsh7th/cmp-omni",
11 "hrsh7th/cmp-path", 10 "hrsh7th/cmp-path",
12 { "L3MON4D3/LuaSnip", opts = { history = true, delete_check_events = "TextChanged" } }, 11 { "L3MON4D3/LuaSnip", opts = { history = true, delete_check_events = "TextChanged" } },
13 "quangnguyen30192/cmp-nvim-tags", 12 "quangnguyen30192/cmp-nvim-tags",
14 }, 13 },
15 config = function() 14 config = function()
81 sources = cmp.config.sources({ 80 sources = cmp.config.sources({
82 { name = "nvim_lsp" }, 81 { name = "nvim_lsp" },
83 { name = "nvim_lua" }, 82 { name = "nvim_lua" },
84 { name = "buffer", option = { keyword_pattern = [[\k\+]] } }, 83 { name = "buffer", option = { keyword_pattern = [[\k\+]] } },
85 { name = "path" }, 84 { name = "path" },
86 -- { name = "omni" },
87 { name = "tags" }, 85 { name = "tags" },
88 { name = "calc" }, 86 { name = "calc" },
89 }), 87 }),
90 }) 88 })
91 end, 89 end,

mercurial