Skip to content

Instantly share code, notes, and snippets.

@joelpalmer
Created October 12, 2021 13:35
Show Gist options
  • Save joelpalmer/2e500df6398d97678f03addb16763ba5 to your computer and use it in GitHub Desktop.
Save joelpalmer/2e500df6398d97678f03addb16763ba5 to your computer and use it in GitHub Desktop.
An after/ftplugin for buffer-scoped nvim-cmp configuration
-- Setup cmp setup buffer configuration - 👻 text off for markdown
local cmp = require "cmp"
cmp.setup.buffer {
sources = {
{ name = "vsnip" },
{ name = "spell" },
{
name = "buffer",
opts = {
get_bufnrs = function()
return vim.api.nvim_list_bufs()
end,
},
},
{ name = "path" },
},
experimental = {
ghost_text = false,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment