Compare commits
2 commits
8c4b705df9
...
5a6eaad114
Author | SHA1 | Date | |
---|---|---|---|
kalmenn | 5a6eaad114 | ||
kalmenn | a19f0efee5 |
|
@ -36,9 +36,11 @@ return {
|
||||||
{ "<C-e>", function() require("cmp").mapping.abort() end },
|
{ "<C-e>", function() require("cmp").mapping.abort() end },
|
||||||
{ "<CR>", function() require("cmp").mapping.confirm({ select = false }) end },
|
{ "<CR>", function() require("cmp").mapping.confirm({ select = false }) end },
|
||||||
},
|
},
|
||||||
init = function()
|
config = function(_, opts)
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
|
|
||||||
|
cmp.setup(opts)
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("BufRead", {
|
vim.api.nvim_create_autocmd("BufRead", {
|
||||||
group = vim.api.nvim_create_augroup("CmpSourceCargo", { clear = true }),
|
group = vim.api.nvim_create_augroup("CmpSourceCargo", { clear = true }),
|
||||||
pattern = "Cargo.toml",
|
pattern = "Cargo.toml",
|
||||||
|
|
Loading…
Reference in a new issue