Created
October 12, 2021 13:35
-
-
Save joelpalmer/2e500df6398d97678f03addb16763ba5 to your computer and use it in GitHub Desktop.
An after/ftplugin for buffer-scoped nvim-cmp configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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