-
If I am writing a CSS file, I often want to write a selector that is based on text already in a different buffer (in HTML or JSX for example). However, at present, even if a string like 'sausages' exists in a open *.ts buffer, typing Conversely, the TS file seems able to read the strings from the CSS file and show them when working in the TS file. How can I adjust my config so that string in open buffers are selectable in the blink menu in CSS files? Current config: return {
keymap = {
preset = "enter",
},
appearance = {
use_nvim_cmp_as_default = true,
nerd_font_variant = "mono",
},
sources = {
default = { "lsp", "path", "snippets", "buffer" },
min_keyword_length = function()
return vim.bo.filetype == "markdown" and 4 or 0
end,
},
completion = {
documentation = { window = { border = "single" } },
menu = {
border = "single",
},
ghost_text = { enabled = true },
list = {
selection = {
preselect = function(ctx)
return ctx.mode ~= "cmdline"
end,
auto_insert = function(ctx)
return ctx.mode ~= "cmdline"
end,
},
},
},
signature = { window = { border = "single" } },
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out I needed to add |
Beta Was this translation helpful? Give feedback.
Turns out I needed to add
sources.providers.lsp.fallbacks = {}
which I came to from this issue: #645 (comment)