You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is my config
{ "saghen/blink.cmp", version = "1.*", dependencies = { "onsails/lspkind.nvim", "xzbdmw/colorful-menu.nvim", { "L3MON4D3/LuaSnip", -- follow latest release. version = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release) -- install jsregexp (optional!). build = "make install_jsregexp", dependencies = { { "rafamadriz/friendly-snippets", config = function() require("luasnip.loaders.from_vscode").lazy_load() end, }, }, }, }, opts = { fuzzy = { implementation = "rust" }, snippets = { preset = "luasnip" }, sources = { default = { "lazydev", "lsp", "path", "snippets", "buffer" }, providers = { lazydev = { name = "LazyDev", module = "lazydev.integrations.blink", -- make lazydev completions top priority (see `:h blink.cmp`) score_offset = 100, }, snippets = { opts = { friendly_snippets = true, -- default -- see the list of frameworks in: https://github.com/rafamadriz/friendly-snippets/tree/main/snippets/frameworks -- and search for possible languages in: https://github.com/rafamadriz/friendly-snippets/blob/main/package.json -- the following is just an example, you should only enable the frameworks that you use extended_filetypes = { markdown = { "jekyll" }, sh = { "shelldoc" }, php = { "phpdoc" }, cpp = { "unreal" }, }, }, }, }, }, keymap = { preset = "enter", ["<Tab>"] = { "select_next", "fallback" }, ["<S-Tab>"] = { "select_prev", "fallback" }, ["<C-Up>"] = { "scroll_documentation_up", "fallback" }, ["<C-Down>"] = { "scroll_documentation_down", "fallback" }, [",."] = { "cancel" }, }, appearance = { use_nvim_cmp_as_default = true, }, completion = { documentation = { auto_show = false, window = { border = "rounded", }, }, menu = { border = "rounded", draw = { columns = { { "kind_icon" }, { "label" }, { "kind" }, { "source_name" } }, components = { label = { text = function(ctx) return require("colorful-menu").blink_components_text(ctx) end, highlight = function(ctx) return require("colorful-menu").blink_components_highlight(ctx) end, }, kind_icon = { text = function(ctx) local icon = ctx.kind_icon if vim.tbl_contains({ "Path" }, ctx.source_name) then local dev_icon, _ = require("nvim-web-devicons").get_icon(ctx.label) if dev_icon then icon = dev_icon end else icon = require("lspkind").symbolic(ctx.kind, { mode = "symbol", }) end return icon .. ctx.icon_gap end, -- Optionally, use the highlight groups from nvim-web-devicons -- You can also add the same function for `kind.highlight` if you want to -- keep the highlight groups in sync with the icons. highlight = function(ctx) local hl = ctx.kind_hl if vim.tbl_contains({ "Path" }, ctx.source_name) then local dev_icon, dev_hl = require("nvim-web-devicons").get_icon(ctx.label) if dev_icon then hl = dev_hl end end return hl end, }, source_name = { text = function(ctx) return "[" .. ctx.source_name .. "]" end, }, }, }, }, }, }, },but I'm getting this error

how should i add extended_filetypes on my config?
Beta Was this translation helpful? Give feedback.
All reactions