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 label_detail and label_description are only available when the lsp supports that feature. label_detail is missing while label_description is present which makes me think that the lsp does support the description one. However. When I use it it does not show up however. The column that has the description stays empty while all others (besides source_id) seem to work.
There is no error thrown or anything. Maybe I have to enable that somewhere first?
The LSP I'm using it the kotlin-language-server by fcwd.

This is my configuration:
Plugin Spec (loaded as a dependency of nvim-lspconfig:
{
"saghen/blink.cmp",
dependencies = "rafamadriz/friendly-snippets",
version = "*",
opts = require("lsp.cmp"),
},
lua/lsp/cmp.lua
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,
},
},
},
}
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
label_detailandlabel_descriptionare only available when the lsp supports that feature.label_detailis missing whilelabel_descriptionis present which makes me think that the lsp does support the description one. However. When I use it it does not show up however. The column that has the description stays empty while all others (besidessource_id) seem to work.There is no error thrown or anything. Maybe I have to enable that somewhere first?
The LSP I'm using it the kotlin-language-server by fcwd.
This is my configuration:
Plugin Spec (loaded as a dependency of
nvim-lspconfig:{ "saghen/blink.cmp", dependencies = "rafamadriz/friendly-snippets", version = "*", opts = require("lsp.cmp"), },lua/lsp/cmp.lua