crates.nvim add to cmp sources and fix some typos in config
This commit is contained in:
parent
433f3361a9
commit
4a06eafe98
|
|
@ -76,7 +76,7 @@ M.crates = function()
|
||||||
local options = {
|
local options = {
|
||||||
popup = {
|
popup = {
|
||||||
style = "minimal",
|
style = "minimal",
|
||||||
order = "rounded",
|
border = "rounded",
|
||||||
show_version_date = false,
|
show_version_date = false,
|
||||||
show_dependency_version = true,
|
show_dependency_version = true,
|
||||||
padding = 1,
|
padding = 1,
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,12 @@ local plugins = {
|
||||||
event = { "BufRead Cargo.toml" },
|
event = { "BufRead Cargo.toml" },
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.configs.others").crates()
|
require("plugins.configs.others").crates()
|
||||||
end
|
end,
|
||||||
|
-- Add crates.nvim to the cmp sources as soon as we load the plugin
|
||||||
|
init = function()
|
||||||
|
local cmp = require("cmp");
|
||||||
|
cmp.setup.buffer({ sources = { { name = "crates" } } })
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- load luasnips + cmp related in insert mode only
|
-- load luasnips + cmp related in insert mode only
|
||||||
|
|
|
||||||
Reference in New Issue