cmp-bootstrap.nvim is nvim-cmp completion source for bootstrap 4 class names
- Neovim >= 0.5.1
- nvim-cmp
using packer.nvim
use {
"rambhosale/cmp-bootstrap.nvim",
after = "nvim-cmp"
event = "InsertEnter",
}
Add the following code to in your init.lua or a simillar file
local cmp = require("cmp")
cmp.setup.filetype('html', {
sources = cmp.config.sources({
{ name = 'cmp_bootstrap' },
-- other sources
})
})
If you want to show the completion source icon in the suggestions add the following to your lspkind_icons config
vim_item.menu = ({
nvim_lsp = "[LSP]",
nvim_lua = "[Lua]",
buffer = "[BUF]",
cmp_bootstrap = "[]"
})[entry.source.name]
This project would not have possible without the help of
- kdheepak/cmp-latex-symbols for project setup
- jfcherng-sublime/ST-BootstrapAutocomplete for Bootstrap classes completion source