Adding ghost text for cmp

This commit is contained in:
Zoe Roux
2022-03-19 18:06:07 +01:00
parent 85387b9b67
commit 6ae2e17be7
2 changed files with 13 additions and 5 deletions
+2
View File
@@ -1,5 +1,7 @@
vim.g["dispatch_no_maps"] = 1
local wk = require("which-key")
wk.register({
b = { "<cmd>Make<cr>", "Build project" },
+11 -5
View File
@@ -10,11 +10,11 @@ end
local kind_icons = {
Text = "",
Method = "m",
Method = "",
Function = "",
Constructor = "",
Field = "",
Variable = "",
Field = "",
Variable = "",
Class = "",
Interface = "",
Module = "",
@@ -29,8 +29,8 @@ local kind_icons = {
Reference = "",
Folder = "",
EnumMember = "",
Constant = "",
Struct = "",
Constant = "",
Struct = "",
Event = "",
Operator = "",
TypeParameter = "",
@@ -94,6 +94,12 @@ cmp.setup({
return vim_item
end,
},
documentation = {
border = { "", "", "", "", "", "", "", "" },
},
experimental = {
ghost_text = true,
},
})
cmp.setup.cmdline('/', {