-
I'm trying to set up completion in a way that it shows from where a class would be imported. I'm not quite sure where to get the path from but the documentation said that There is no error thrown or anything. Maybe I have to enable that somewhere first? This is my configuration: Plugin Spec (loaded as a dependency of {
"saghen/blink.cmp",
dependencies = "rafamadriz/friendly-snippets",
version = "*",
opts = require("lsp.cmp"),
},
return {
enabled = function()
local disabled_ft = require("utils").non_filetypes
return not vim.tbl_contains(disabled_ft, vim.bo.filetype)
end,
keymap = {
preset = "super-tab",
["<C-j>"] = { "select_next", "fallback" },
["<C-k>"] = { "select_prev", "fallback" },
},
completion = {
menu = {
draw = {
columns = {
{ "kind_icon", "label", "label_description", gap = 1 },
{ "kind", "source_name", gap = 1 },
},
},
},
},
appearance = {
use_nvim_cmp_as_default = true,
nerd_font_variant = "mono",
},
signature = { enabled = true },
sources = {
default = {
"lazydev",
"lsp",
"snippets",
"path",
"buffer",
},
providers = {
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
},
},
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I've been wondering the same, did you find any solution? |
Beta Was this translation helpful? Give feedback.
It seems like the
label_detail
thing just doesn't exist. Howeverlabel_description
now has the package name of an import. So it sort of fixed itself